web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Passing infolog generated during AIF custom service call to consumer?

(0) ShareShare
ReportReport
Posted on by

I want to know if it is possible to pass infolog generated on server in an AIF service(custom service) call, to consumer application? I do get all infologs in FaultException's object in case there is any exception is thrown on Server side but not in normal condition.

*This post is locked for comments

  • Martin Dráb Profile Picture
    240,845 Most Valuable Professional on at

    How do you imagine that it should work? Should all data contracts be extended to include a list of messages, for instance?

    Nothing like that exists in standard AX (AFAIK). You still have to answer such questions to yourself if you want implement such a feature.

  • Community Member Profile Picture
    on at

    The code we write runs wrapped in Microsoft's code. e.g. Sending exception is not part of my code and my contracts doesn't include any reference of infologs but i DO get infologs at consumer in case there is an exception thrown from AIF service. So, not having complete knowledge of how Application Integration Framework works, I still think it is logical to think of a possibility that there might be a way to push infolog messages to consumer application.

    Please respond if you know.

  • Martin Dráb Profile Picture
    240,845 Most Valuable Professional on at

    Yes, I know that the error message is included in the fault contract.

    What I'm saying that it's not in message contracts. For example, your service returns a sales order and sales orders don't contain infolog messages, therefore there is no place where to put them. You would have to change the contract in some way.

  • Community Member Profile Picture
    on at

    So, my case doesn't include just sending standard source documents or other entities to consumer. My case involves postings using standard AX classes. In case of AX client, if we use those posting classes, we can show all generated infologs to user. But that is not the case in services.

    Infologs are not being generated by my custom service itself, rather, it is being generated by some standard AX posting class and this is not feasible to modify every place to push those infologs to make part of my contract when I have not just one scenario. I have more than twenty scenarios.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans