- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2016 10:32 AM
I'm trying to send email notifications to the stakeholders when a project state changes but am not getting any notifications to go to the Stakeholder. If i add myself to the User, I get a notification.
I'm using the 'dmn_m2m_demand_stakeholder' table and have tried the following configurations.
I've tried setting When to send in these 2 manners but have no change in result:
When to send:
- Send when: even is fired
- Event name: pm_project.updated
- Conditions: Updated is anything
And I've tried:
When to send:
- Record inserted or updated
- Conditions: Demand.Project.State changes
Who will receive:
Users/Groups in fields: Stakeholder
What it will contain:
- PROJECT CREATED STAKEHOLDER -- ${stakeholder.user.name}
- Stakeholder User: ${stakeholder.user}
- Stakeholder User Email: ${stakeholder.user.email}
- Stakeholder: ${stakeholder}
Thanks for any guidance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2016 09:11 AM
You have to use Mail Scripts for that
http://wiki.servicenow.com/?title=Scripting_for_Email_Notifications#gsc.tab=0
If you see in the script I have current project record, I can write a logic to get all stakeholders email using simple joins.
Now in the Notifications I do the following
In the message text - notice that I am doing ${mail_script: send_mail_to_stake_holder} which would be my mail script
In the Who will receive tab, give some default address for the TO.
Stakeholders will be added in the CC of the email, as you can see email.addAddress in line 9 of the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2016 07:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2016 08:20 AM
what do you have in your 'who will receive' tab? I could only find stakeholder by going to dmn_m2m_demand_stakeholder.
thx!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2016 09:11 AM
You have to use Mail Scripts for that
http://wiki.servicenow.com/?title=Scripting_for_Email_Notifications#gsc.tab=0
If you see in the script I have current project record, I can write a logic to get all stakeholders email using simple joins.
Now in the Notifications I do the following
In the message text - notice that I am doing ${mail_script: send_mail_to_stake_holder} which would be my mail script
In the Who will receive tab, give some default address for the TO.
Stakeholders will be added in the CC of the email, as you can see email.addAddress in line 9 of the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2016 10:37 AM
thx that worked!