Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Check what request Json someone sent and what response we returned in D365Fo

(0) ShareShare
ReportReport
Posted on by 92

Hi,

i need to verify what request Json someone sent and what response we returned in D365fo. Currently i'm using a postman to create an item, and in return i'm getting a message "item number has been created". So now if i want to track what request some sent and what response return from D365fo. How can i do that ?

Anyone familiar with this situation ? suggest some solutions.

Regards,

Zohan Shahid

  • Martin Dráb Profile Picture
    231,927 Most Valuable Professional on at
    RE: Check what request Json someone sent and what response we returned in D365Fo

    zohan, please don't forget to look at the other questions as well.

    If the requirement is checking the JSON request and response, it's not possible to do it in the service operation, because that works with X++ types, the method response etc. JSON (de-)serialization happens outside of the method. Although we can say for sure that it wouldn't meet the technical requirement, it might still meet the business requirement. We can't know because the business requirement hasn't been described.

  • ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Check what request Json someone sent and what response we returned in D365Fo

    As far as I understand, your purpose is not simply to test the service (if not, there are .Net connection examples published by microsoft if you just want to test and see the result)

    But if you want to keep the incoming and outgoing values in every transaction, you need to add logs codes to the relevant methods in the service class.

    You can get the service from the service group and You can identify the classes and methods from the service.

  • zohan_ax Profile Picture
    92 on at
    RE: Check what request Json someone sent and what response we returned in D365Fo

    Hi Martin,

    Yes a custom service.

  • Martin Dráb Profile Picture
    231,927 Most Valuable Professional on at
    RE: Check what request Json someone sent and what response we returned in D365Fo

    Which kind of service are you talking about? A custom service called through the JSON-based endpoint?

    Does it mean that you want to log all communication on this single endpoint? Or what exactly are you looking for?

    How exactly does the "someone" calls the service? Can't you handle logging there?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,927 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans