Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Passing infolog generated during AIF custom service call to consumer?

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Passing infolog generated during AIF custom service call to consumer?

    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.

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Passing infolog generated during AIF custom service call to consumer?

    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
    Community Member Microsoft Employee on at
    RE: Passing infolog generated during AIF custom service call to consumer?

    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
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Passing infolog generated during AIF custom service call to consumer?

    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.

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

Featured topics

Product updates

Dynamics 365 release plans