How to get requestor name variable value in workflow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2020 10:10 AM
I tried:
requestor = current.variables.requested_for.getDisplayValue();
and
requestor = current.variables.requested_for.name;
I am not sure what the variable name is and why it is not showing up with a value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2020 10:15 AM
try
requestor = current.variables.requested_for.getValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2020 10:39 AM
No luck. I am trying to get the name of the requestor of the RITM in script runner step in the workflow. Does it need some GlideRecord steps to get it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2020 10:39 AM
Hi Dashap,
Please try below code it will work
answer=current.variables.requested_for;
Hope this helps!
If you have any more questions, please let me know.
If I have answered your question, please mark my response as correct and helpful.
Thanks,
Sriram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2020 10:44 AM
That is one of the methods I tried. Do I need to use some kind of Gliderecord call to get it in the script runner task in the workflow?