Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

How to take decision based on infolog message type on run time

Posted on by 58

I want to execute some statements based on info message type, for example if the infolog contains a warning it should execute BLOCK A statements and if infolog prints error it should execute Block B statements. any ideas?

Any help is appreciate a lot. 

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,240 Super User 2024 Season 2 on at
    RE: How to take decision based on infolog message type on run time

    Hi EagleClaws,

    I'm not able to see a warning or error clause in this method. Probably there are some deeper calls which does the actual budget check.

  • EagleClaws Profile Picture
    EagleClaws 58 on at
    RE: How to take decision based on infolog message type on run time

    We had a requirement regarding Ready for invoice in Invoice Register, where we needed a budget checking before ready for invoice code gets executed,
    The following code checks the budget results and produces warning/error according to budget check:
    SourceDocumentProcessorFacade::submitOnDemandSourceDocumentImpl(vendInvoiceInfoTable);
    It was asked if it produces error ready for invoice code should not be executed and when warning produced it should not show the warning and proceed with ready for invoice code execution.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,240 Super User 2024 Season 2 on at
    RE: How to take decision based on infolog message type on run time

    Hi EagleClaws,

    Can you explain the business requirement here? Can you also explain what you are trying to achieve?

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans