Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

How to directly get D365FO service request's body json using x++ code ?

Posted on by

So when i using x++ code to custom a D365FO's service,

i need set a request body key as below's pic.

Dose there have any way to let me directly get the third part request body json's value ?

Thanks !

pastedimage1685954708792v2.png

  • Vast Wang Profile Picture
    Vast Wang on at
    RE: How to directly get D365FO service request's body json using x++ code ?

    Thanks for your reply.

    But seems you didn't got my point.

    I don't want to use a Key to wrap the input JSON. I want the input and output parameters of the interface to be a single-layer JSON. Do you know how to do it?

  • Suggested answer
    Prasad.V Profile Picture
    Prasad.V 185 on at
    RE: How to directly get D365FO service request's body json using x++ code ?

    Hi Vast Wang,

    You can define contract class with DataContract, DataMember attributes and let F&O deal with serializing and deserializing.

    Here is an article you can follow

    dynamics365musings.com/.../

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans