Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Workflow notifications to e-mail address

Posted on by 291,280 Super User 2024 Season 2

For a customer we are looking if it would be possible to send email notifications to a certain e-mail address rather than using an user or other workflow participant.

We are thinking of extending the options for notification recipients.

Has someone had this requirement before and solved this? We don't like to add mailboxes as "persons" in the Active directory only for being able to send a notification to an e-mail group.

*This post is locked for comments

  • Jonathan  Halland Profile Picture
    Jonathan Halland 11,304 on at
    RE: Workflow notifications to e-mail address

    I'm glad you have a workable solution with the clients on AD.

    If you need to look at this in the future again, the other option you have if you only need to do this in a couple of specific cases is to add code to the event handlers of your workflow elements to send out the messages.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Workflow notifications to e-mail address

    Hi Jonathan,

    This is a very nice suggestion. I was aware of the EventInbox table, so that was the reason to think of using only an e-mail address for notification. Scanning the workflow tracking tables was an option we did not think of yet. It will also require additional analysis to prevent performance issues and we have to know exactly which records needs to be processed or were processed before.

    I just also found out that for these kind of emails this customer had created AD users already for this kind of e-mail addresses. So we probably will use the AD users so we can use standard AX.

    Thanks for the excellent answer anyway.

  • Verified answer
    Jonathan  Halland Profile Picture
    Jonathan Halland 11,304 on at
    RE: Workflow notifications to e-mail address

    Hi Andre.

    I haven't had this requirement before, but have worked on customising the emails etc on a number of occassions. There are a couple of challenges that one needs to overcome. Firstly modifying the configuration forms to allow for alternative inputs (i.e. non-user based). Secondly the standard email notification system works primarily against the EventInbox table (used for alerts). Although the AOT table itself does not require a userID, the notification code assumes it for retreiving email addresses, user language etc...

    My suggestion / idea would be to create a set of stand-alone functionality where you can 1. Specify your custom alert message and email addresses against selected elements in the WorkflowElementTable (or WorkflowElementNotificationTable).

    2. Write your own batch job that processes records in WorkflowTrackingStatusTable and WorkflowTrackingTable and sends out mails.

    Trying to mess with the standard functionality I think will just cause headaches down the line.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans