Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

RE: Schedule Copying Customer only data to New Table

$
0
0

you can retrieve information from DirPartyTable in custable insert method  and put it in your table as you are going to insert record in your table after super call of custable insert method. Dirpatytable hold information not only for customers but vendors , workers etc ..  so its not a correct place.


RE: Override Table Methods in D365

Override Table Methods in D365

$
0
0

Hello,

How can I override the implementation of a table method in an Extension class?

I am developing a custom Workflow for Sales Order, for that i need to override *CanSubmitToWorkflow* method in table. For now, according to my understanding this can only be achieved by Overlayering which definitely is not a good practice. Can someone here guide me if there is any workaround?

RE: Tables Relationship

$
0
0

You can use EDT relation or table relation so your thinking is correct.

RE: How to create/write "canSubmitToWorkflow" method on table extension in D365

$
0
0

I am in agreement that In D365FO extension of canSubmitToWorkflow still not available if not override on actual table. But there is an alternate way on which I have recently worked and its working perfectly on client side.

Please have look this blog and mark this answer as suggested if this will work for you.

community.dynamics.com/.../avoid-over-layering-in-development-of-workflows-on-existing-form

d365technext.blogspot.com/.../avoid-over-layering-in-development-of.html

How to create/write "canSubmitToWorkflow" method on table extension in D365

$
0
0

Hello everyone,

I need to create a workflow for which "canSubmitToWorkflow" method needs to be created on standard table which doesn't have canSubmitToWorkflow method but development is to be done using extensions.

In table extensions we can't override standard methods which in-turn can't create "canSubmitToWorkflow" method.

how can we achieve/write canSubmitToWorkflow method without customizing standard table.

 

Reading XML with HTTPS

$
0
0

Hello Community,

We have an issue reading XML coming with SSL Certificate, with https URL. Example of the URL is like this : https://site.com/page.php?key=xxx&date=2018-07-15

This URL shows a page with XML structure. I can read and save it to table, if it comes with http and no ssl certificate. But when it comes with ssl https, it gives an exception like below:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.GetResponse()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* , ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)

I read it with following code:

 System.Net.WebResponse              webResponse;
    System.Net.HttpWebRequest           httpWebRequest;
    System.Net.WebHeaderCollection      webHeaderCollection;
    System.IO.StreamReader              streamReader;
    System.IO.Stream                    stream;
    System.Exception                    netExcepn;
    str                                 xmlOut;
    XmlDocument                         xmlDocument;
    XmlNodeList                         xmlNodeList;
    XmlNode                             mainNode;
    XmlNode                             childNode;
    
    
    #define.ServiceTimeout(5000)
    #define.ServiceURL(xmlAddress)
    #define.mainNodeName('orders')
    #define.childNodeName('order')



    #define.HttpWebRequestMethod("GET")
    #define.HttpWebRequestContentType("application/xml")
    #define.HttpHeaderAuthorization("Authorization")


    if(this.validateURL(xmlAddress))
    {
        try
        {
        httpWebRequest          = System.Net.WebRequest::CreateHttp(#ServiceURL);
        httpWebRequest.set_Method(#HttpWebRequestMethod);
        httpWebRequest.set_ContentType(#HttpWebRequestContentType);
        httpWebRequest.set_Timeout(#ServiceTimeout);
        //httpWebRequest.set_ClientCertificates(
        webHeaderCollection     = httpWebRequest.get_Headers();
        webResponse             = httpWebRequest.GetResponse();
        stream                  = webResponse.GetResponseStream();
        streamReader            = new System.IO.StreamReader(stream);
        info("@QQL940");
        }
        catch(Exception::CLRError)
        {
            netExcepn = CLRInterop::getLastException();
            info(netExcepn.ToString());
        }
    }
    else
    {
        streamReader            = new System.IO.StreamReader(xmlAddress);
        info("@QQL941");
    }

    if(!sourceId)
    {
        checkFailed("@QQL946");
        return;
    }
    xmlOut                  = streamReader.ReadToEnd();


    xmlDocument             = XmlDocument::newXml(XMLOut);
    mainNode                = xmlDocument.selectSingleNode(#mainNodeName);
    xmlNodeList             = mainNode.selectNodes(#childNodeName);
    childNode               = xmlNodeList.nextNode();

    while (childNode)
    {
        this.parseXML(childNode);
        childNode               = xmlNodeList.nextNode();
    }

    info("@QQL942");
   // --------------------- READ FROM XML-----------------
}


Can you please help me to solve this problem.

Thanks in advance.

RE: Enable AOSAuthorized field for a security role


Enable AOSAuthorized field for a security role

$
0
0

Hi ,

I am facing an issue for a role where I get " Access denied" error for a field which is AOSAuthorizedEnabled.

I created a privilege which gives full access to the table . And the same is referred in the role as well.

Still I face this error.

Any idea on handling the AOSAuthrorized enabled field for a role ?

Regards,

Anitha.E

RE: purchase order workflow

$
0
0

Hawra,

If you do not have any customizations, it is impossible for my explanation not to work. Double check and compare your setups please

RE: ODBC Batch Import - Error

$
0
0

Hello.

An entry must be made on the batch server in the DNS system.  Important, if you open it via the start menu, probably the 64 bit version will be opened, I have also entered it in the 32 bit version.  Of course as a system DNS entry.

In addition, I have entered it on the AOS server, which is not running as a batch server.

Unfortunately, that was a few years ago, at the moment I am working more with 2012 and 365.

Best wishes from my holiday in Norway

Jens

RE: Tables Relationship

$
0
0

Microsoft changed it a bit in AX 2012. Have a look here: community.dynamics.com/.../148189

If you have an EDT relation, when adding the EDT to a table (2012), AX will prompt you whether to add the relation to the table...

Tables Relationship

$
0
0

I am a beginner in Dynamics AX, I want to ask that how many ways are there to relate the tables.So far what i understand that there are two ways that we can relate them through EDT and the other way of doing id through the Relationship section in table.If i am wrong then please correct me if not then tell me the difference both of them.Thanks.

RE: How to create Objects(tables/class etc) and Object extension(tables extension / class extension etc) through X++ code in D365 VS

$
0
0

Hi Gopal,

In this case, you should have a look if you can create a Visual Studio extension (similar to Data entity wizard) which is able to create new object files (xml-based). I'm not familiar with this type of extensions.

RE: Tables Relationship

$
0
0

Also note in D365 for finance and operations you can not add relationship at EDT level


RE: Enable AOSAuthorized field for a security role

$
0
0

Hi Anitha,

The screenshot does not show the security settings for the field itself. I do assume it is also set to Delete (correct setting). Have you done a full build of your model and then a database sync? The database sync is required to get the latest security settings active.

RE: Tables Relationship

$
0
0

Hi Bilal,

Crispin is correct. The EDT relations are/will be depreciated. So, use the relations on the tables. PS. The link from Crispin did not work. I have corrected it in his original post.

RE: Send email with cc using SysEmailtable::sendmail method

RE: Send email with cc using SysEmailtable::sendmail method

RE: Tables Relationship

$
0
0

Thanks for correcting the link, Andre. Much appreciated.

(sometimes, my browser opens a page, but messes up the URL..)

Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>