- 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 06:16 AM
sorry didn't get your complete requirement.
what did you start with and where are you stuck? share screenshots.
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:40 AM - edited 02-04-2025 06:46 AM
We have 20 email notifications in single Record producer.my Requirement is add "Is this in scope of MF2 initiative? = Yes" line to existing emails body and send notification to based upon the MF2 selection
or
Create new Email notification for
Email body :" Is this in scope of MF2 initiative? = Yes"
condition : when user Select the MF2=YES in Dropdown list based upon the user selection
if user select the "Is this in scope of MF2 initiative=yes" email Notification should be send to users.
Only Email notification send user select the "Is this in scope of MF2 initiative=yes"
I am trying to achieve to using Notification Condition but I can't select the dropdown field
I am stuck in this,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 06:46 AM
use advanced condition and use this
Give correct variable name and choice value. if the condition is satisfied then only email will be sent
if(current.variables.variableName == 'yes')
answer = true;
else
answer = false;
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:55 AM
Thank you for marking my response as helpful.
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-05-2025 08:34 PM
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