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.

scripting short description in flow designer

Baggies
Kilo Guru

I am just beginning to use Flow Designer instead of workflows.
In  the Create Catalog Task action, I want to script the Short Description with text and the variable answers.
In workflow you can use something like:  task.short_description = "This is my text" + current.variables.VARIABLE_NAME;
But this throws an error when I use it in a flow.

I did try dragging the 'pills' from "Get catalog variable" but all they did was return the variable name, like 'variable_name' and the requested for name as a sys_id.

What I would like to do is have the short description say 'catalog item name' + for + 'requested for name'.

Any help appreciated, stay safe.

Mark S

 

 

4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Mark,

I am able to get the required output via drag and drop of  data pills.Screenshot attached for reference.

find_real_file.png

- Pradeep Sharma

Thanks Pradeep, but I am trying to get the variables in there too.

yup so assigned_to->name is a catalog variable in my case.

assigned_to is a variable on your catalog task form? Why would you have a variable name the same as a form field? To reference a variable you would have to script something like ....current.variables.VAR_NAME