Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Access variables from a variable set in workflow

Vishwa Pandya19
Mega Sage

Hello,

I have a catalog item which contains a variable set called "Requested For Details Variables" (backend name: requested_for_details_variables).

I want to access the "Requested for" (backend name: rs_requested_for) variable from this variable set into the workflow to check the user name.

I have tried

current.variables.requested_for_details_variables.rs_requested_for.toString()

current.requested_for_details_variables.rs_requested_for.toString()

But nothing seems to work. 

Please help.

1 ACCEPTED SOLUTION

Shruti
Giga Sage
Giga Sage

Hi,

Try current.variables.rs_requested_for or current.variables.rs_requested_for.toString()

View solution in original post

8 REPLIES 8

Shruti
Giga Sage
Giga Sage

Hi,

Try current.variables.rs_requested_for or current.variables.rs_requested_for.toString()

Tried this as well. Not working.

Is it a multi row variable set?

Yes.