Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

How to generate JSON file in x++

Posted on by 522
Hi Guys,
 
Can I get any reference for generating JSON file in D365FO.
 
Example - The payload will be in the below format.
​{  /ID/: /123/,  /DatAreaID/: /USMF/,  /Details/: [    {      /Info/: [        {          /Error/: //,          /DetailsInfo/: [            {              /CustID/: /201/,                          },            {              /CustID: /201/,                         }          ]        }      ]    }  ]}​
 
 
 
 
 
 
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    How to generate JSON file in x++
    What do you want to do with it? Maybe you don't need it at all. If you create a custom service, you'll simply return a data contract object and F&O will serialize it to JSON for you.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans