web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Integration of Json file with AX09

(0) ShareShare
ReportReport
Posted on by

Hi guys,

With reference from link:

https://workflowax.wordpress.com/2013/11/11/json-in-dynamics-ax-advanced-example-1-basic-auth/

I have to do integration of json with ax .

For that I have files in jason format , I am not able to read that format in AX.

I have created table1 with field of type "memo". My json code is in the memo field. I have to read that Json file and create a sales order.

If possible please communicate.

Thanks & Regards

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    JSON is a text format, so you can - in theory - use any text-oriented tools and APIs. But in practice, you need a parser. You can write one in X++, but using an existing .NET-based parser may be easier.

  • Community Member Profile Picture
    on at

    i m trying to write job for it in ax .

    getting error on below line as :

    reader = jsonreader::parseJson(json);

    Error executing code: JsonReader (object) has no valid runable code in method 'new'.

  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    Compile JsonReader and fix all compilation errors.

  • Community Member Profile Picture
    on at

    Is it possible to do it without jasonReader class , just by putting whole code in single job

  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    I don't know what's in your class. In general, you can do everything without objects, but object-oriented development was invented for a reason. It helps with managing complexity, making reusable components (e.g. you would likely parse JSON at several places) and so on. Therefore giving up classes doesn't sound like a wise idea.

  • Community Member Profile Picture
    on at

    error : class JsonHelper

    {

    Newtonsoft.Json.Linq.JObject    jObject;

    }

    syntax error

  • Suggested answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    Ensure yourself that you added a reference to Json.NET to AOT and that put the DLL to a location where AX client can find it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans