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 :
Finance | Project Operations, Human Resources, ...
Answered

Build JSON for D365 F&O Custom service for Postman testing

(0) ShareShare
ReportReport
Posted on by 758

Hi Everyone,

Recently I have been assigned on one task of integration where a developer has created Custom service in D365 F&O.

Now my job is to test the Custom service through postman. But for testing I need to build JSON. And my operation method looks like below, it has 3 parameter classes.

Earlier when I worked on similar kind of service, I used to have only one parameter class and I used to build the JSON manually by picking up one by one parameter from Parameter class.

Is there any website which will give us JSON built automatically if we pass our REST URL to it? If not , what is the simplest way to build the JSON?

1460.png

1807240.png

8831.png

Thank you.

I have the same question (0)
  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Rhushikesh,

    The root-level information about parameters for web service you can get by request URL host_uri/.../operation_name in the browser.

    For contract content, I would use the runnable class to serialize empty contracts with FormJsonSerializer class.

    public static void main(Args _args)
    {
        MyServiceContact c = new MyServiceContact();
    
        info(FormJsonSerializer::serializeClass(c));
    }

  • Rhushikesh R Profile Picture
    758 on at

    Thank you Sergei.

    That's what exactly I was looking for.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans