Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
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

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