Flow designer- task sysid

Sonali Jadhav
Mega Expert

Hi ,

 

i am creating flow for catalog item through flow designer.

i am creating one catalog task ,in the next action i need to write one script where i need sys_id and assignment group of previously created catalog task.

how can we get that sys id and assignment group in the script.

can someone please help me with this.

 

Regards

1 ACCEPTED SOLUTION

Hi,

While creating action, you will create inputs for it. Create input like below. Then you can use this variable in your action.

When you'll call this action, it will ask for input from flow. Pass the sys_id from data pills to this action.find_real_file.png

Calling from flow:

 

 

Jagjeet Singh
ServiceNow Community Rising Star 2022/2023

View solution in original post

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

As mentioned by Jagjeet you can use that data pills for the catalog task in your script section

Example below you can try

var desc = fd_data._2__create_catalog_task.catalog_task.assigned_to;
return desc

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi ,

 

i am creating new action where i am using run script activity.....can we use same script there?

Hi,

if you are creating custom flow action then send the 2 field data as input to it

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

ok...How can we pass created catalog task sys id there?

Hi,

While creating action, you will create inputs for it. Create input like below. Then you can use this variable in your action.

When you'll call this action, it will ask for input from flow. Pass the sys_id from data pills to this action.find_real_file.png

Calling from flow:

 

 

Jagjeet Singh
ServiceNow Community Rising Star 2022/2023