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, ...
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

I have the same question (0)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    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?

  • zohan_ax Profile Picture
    92 on at

    Hi Martin,

    Yes a custom service.

  • ergun sahin Profile Picture
    8,826 Moderator on at

    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.

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    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.

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 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans