- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 05:11 AM - edited 02-04-2025 05:13 AM
Hi Team,
My Requirement:
If user select the " Is this in scope of MF2 initiative = Yes" , Send email notification to user , if user select the " Is this in scope of MF2 initiative = no " not required to send email notification.
Is there any requests associated with MF2=YES , This notification will be sent .
There are 20 notifications are there in the system so we can add this "Is this in scope of MF2 initiative? = Yes" line to
existing notifications if the users select to the MF2.
Please help me how can we achieve this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 01:49 AM
use this
var mf2initiative = current.variables.mf2initiative.getDisplayValue();
if (mf2initiative == 'Yes') {
template.print('Yes');
} else {
template.print('No');
}
})(current, template, email, email_action, event);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 05:26 AM
you can use flow's Send Email action and before sending use IF logic to check what's the variable value either Yes or No
what do you mean by you have 20 notifications are there?
You have 20 notifications on that single catalog item?
You will have to check the variable value from wherever you are triggering that email
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 05:37 AM - edited 02-04-2025 05:42 AM
Hi @Ankur Bawiskar ,
You have 20 notifications on that single catalog item : Yes single Record producer.
Can we achieve using Workflows ? How can i achieve in workflows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 05:40 AM
yes, you can use IF activity and check the variable value
Should be an easy task.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 06:08 AM
Hi @Ankur Bawiskar , Thanks for your response.
My exact requirement is motioned below
Add to Email notifications:
Is this CIR associated with any migration factory or other enterprise tracking initiatives?
If answer is Yes to the following question(s), display: MF2
Is this in scope of MF2 initiative? = Yes
Please help me how can i achieve this.