Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

(0) ShareShare
ReportReport
Posted on by 506

Hi all,

Want to sent mail to manager of the project with project details whenever project is Creation, Initialization, Closure, RoleStart, RoleEnd. Where should i write code to do so.

Thanks and regards

Siddhant Singh

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    Hi Siddhant Singh,

    I think that you need to code all of that. The standard functionalities are not sufficient in my opinion.

    Are you looking for some help to generate this code?

    Best regards,

    Ludwig

  • Suggested answer
    Jay Barot Profile Picture
    1,502 on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    Hi Siddhant,

    what i understood from all your reply is you want to send alert when particular field get changed.

    For this you have to write a method code on particular table and in that you have to use SendEmail method of SysEmailTable.

  • Siddhant Singh Profile Picture
    506 on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    Hi Ludwig,

    Want to end a particular email content to be sent. Have written a class to send email. I want to run this class whenever the status gets changed of the Project and also when some resources are aligned or removed from project.

    How i can do this particular functionality.

    Thanks and regards.

    Siddhant Singh

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    Hello Siddhant Singh,

    You can try creating a custom alert that hits when then project stage is set to a specific value.

    This alert can then trigger an email notification that you can use to inform the manager, controller and other people about this change.

    You can use MS PowerAutomate for that even if you are operating in AX2012.

    A prerequisite is, however, having the alerts and stages correctly setup in AX.

    Would be great if you could give it a try and let us know if this fixes your issue.

    Best regards,

    Ludwig

  • Suggested answer
    Christoph Thaler Profile Picture
    5,442 on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    Hi Siddhant Singh,

    you can try to solve your problem with alert based business events and power automate. So it is a matter of configuration instead of coding in D365. By experience I can tell you there are some possibilities but it needs some know how and tricks in Power Automate. Especially because you do not get all the details in separated fields.

  • Siddhant Singh Profile Picture
    506 on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    Hi Ludwig,

    Yes, But the project stages fields do not contains the required elements. How can i get the below conditions work.

    Thanks and regrads

    Siddhant Singh

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    Hi Siddhant,

    I see.

    Event means if somebody changes the project stage field, right?

    Best regards,

    Ludwig

  • Siddhant Singh Profile Picture
    506 on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    Hi Ludwig,

    Want to send email when project is

    if(event == "Initialization" || event == "Closure" || event == "RoleStart" || event == "RoleEnd" || event == "Creation")

    Thanks and regards

    Siddhant Singh

  • Gao Lu Wang Profile Picture
    180 on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    you can try to do it in Alerts .https://docs.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/alerts

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Want to sent mail to manager of the project with project details whenever project is created. Where should i write code to do so.

    Hi Siddhant Singh,

    Can you elaborate?

    Do you want to send an email if the status changes e.g. from created to closed,etc.?

    Best regards,

    Ludwig

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans