GlideEvaluator.evaluateString not working from the flow actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 03:58 PM
I am trying to use GlideEvaluator.evaluateString from the custom flow action, it is returning a null value.
If anyone encountered the same issue or having any workaround please respond here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 06:04 PM
Hi @vishnupuli
Is your action part of a scoped application? If it is not in Global Scope, use GlideScopedEvaluator.
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2025 09:17 PM
Yes Amit, action is part of Global space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 07:05 PM
is your flow action is global scope?
Is the script field against which you are evaluating in same scope or other scope?
what's your business requirement?
GlideEvaluator.evaluateString also works in scoped app.
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-13-2025 02:43 PM
Yes Flow action is in Global. below is the action script and results
For task_sd, i am directly getting the variable
For task_desc, I am using evaluateString and passing as a string.
Output:
If i use the same from the fix script it is executed as expected.
Output: