- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 03:36 AM - edited 08-21-2025 03:51 AM
Hi Everyone,
I am sending an Email notification in flow designer with the "state" field's previous and current value.
The state filed has multiple choices with same value, so when the FDchangeDetails > Previous Display Value is used it picks the wrong choice to send.
this should have been Scope to validate, instead it picked "pending" as it has the same value as "scope"
Tried: changing the sequence of the choice list [ still the same ]
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
@SowmyaSuru I haven't found the root cause but did a workaround.
Issue : When directly using the Display value for the state it shows the wrong one as it picks a value in random.
Workaround: Create a custom flow action.
Inputs: value of the choices.
script action: based on the back-end value assign a custom display value.
Output: custom display value for the email
Edit: This is to only handle the display value for the email in flow designer as in my case which the choice changes it sets the proper value in the record flow. [Note: if your choice has multiple similar values its better to set the display value instead of setting the back-end value in the script]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 04:02 AM
flow is on which table?
what's the trigger condition?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 04:18 AM
What is the table/trigger condition.
Based on that you can store the previous state at some pint in flow in flow variable and send it in notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
@Chandru SP , Did you find the rootcause for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
@SowmyaSuru I haven't found the root cause but did a workaround.
Issue : When directly using the Display value for the state it shows the wrong one as it picks a value in random.
Workaround: Create a custom flow action.
Inputs: value of the choices.
script action: based on the back-end value assign a custom display value.
Output: custom display value for the email
Edit: This is to only handle the display value for the email in flow designer as in my case which the choice changes it sets the proper value in the record flow. [Note: if your choice has multiple similar values its better to set the display value instead of setting the back-end value in the script]