The CreatorCon Call for Content is officially open! Get started here.

How to get requestor name variable value in workflow?

dashap
Giga Contributor

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.

11 REPLIES 11

Brian Kimani2
Tera Contributor

try

requestor = current.variables.requested_for.getValue();

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?  

sriram35
Kilo Guru

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

 

dashap
Giga Contributor

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?