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 :
Microsoft Dynamics AX (Archived)

Send overbudget email after posting journal

(0) ShareShare
ReportReport
Posted on by 106

Hi All,

I need to send an overbudget email to group user after posting a journal. Any idea how to do this in the LedgerJournalPost class after performing the budget check? Thank you. 

Raymon

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Raymon,

    Why is that? Can't you use the standard budget control functionality to prevent budget overruns?

    Best regards,

    Ludwig

  • raymonmon Profile Picture
    106 on at

    Hi Ludwig,

    Yes, I have set the budget control functionality. But client wants to implement the email functionality as a reminder in case user misses the info log. Thank you.

    Regards,

    Raymon

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Raymon,

    Have you tried realizing this with an alert that you send for example to a central mailbox and distribute from there?

    1447.alert.png

    Best regards,

    Ludwig

  • raymonmon Profile Picture
    106 on at

    Hi Ludwig,

    No, I have not tried this. Could you please elaborate how to do this? My objective is to send email after the journal has been posted. Thank you.

    Regards,

    Raymon

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Raymon,

    I actived budget control, created a journal that exceeds the budget and did a budget control check.

    Then I opened the budget check errors and warnings form from the journal and created this alert.

    Have not tested this in detail but this might be a 'workaround' that does not require a system modification.

    You would have to check and test this to verify whether it works out for the requirement you have.

    Best regards,

    Ludwig

  • raymonmon Profile Picture
    106 on at

    Hi Ludwig

    'Then I opened the budget check errors and warnings form from the journal and created this alert.'

    How did you do this? I did not find the Budget check errors and warning form inside the journal?

    Regards,

    Raymon

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    Here is a screenprint

    2043.bu.png

    Best regards,

    Ludwig

  • raymonmon Profile Picture
    106 on at

    Hi Crispin,

    I did create a method inside the BudgetControlProcessor class in which I send the email if the budget exceeded. But I only need to send it after posting the journal (the one I tried was Payment Invoive). The method I developed sends the email each time a budget check error pops out. I have no idea how to send the email from a specific trigger like after posting a Journal not during creating one.

    Regards,

    Raymon

  • raymonmon Profile Picture
    106 on at

    Hi Ludwig,

    I think this will email user every time the budget check throws a budget exceeded error like if I modify the budget or validate the journal, right? I just need to send the email after posting.

    Regards,

    Raymon

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans