Flow Designer

Samyak Jain2
Tera Guru

Hi,

I am new in flow designer i have one requirment  created the maintain item that containing a variable location, of type list collector .if user selected the three location ,so three catalog task should be created if four so four task should be created means dynamic flow . so please help me.how it can be possible in flow designer.

1 ACCEPTED SOLUTION

Sebastian R_
Kilo Sage

First screenshot is from the custom Flow Action you have to build (takes a string and returns an array).

 

2. Call your custom action "String to Array" with the location variable as string input (unfortunately it didn´t rename it in my flow)

3. Do a for-each on the result from the action (array of sys_ids)

3.1 Do a GlideRecord Lookup for the Location based on the for-each value (sys_id)

3.2 Create the Catalog Task as you want.

 

If you are not familiar with Flows and Actions, please have a look at the documentation: https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/flow-designer/concept...

View solution in original post

13 REPLIES 13

Sebastian R_
Kilo Sage

First screenshot is from the custom Flow Action you have to build (takes a string and returns an array).

 

2. Call your custom action "String to Array" with the location variable as string input (unfortunately it didn´t rename it in my flow)

3. Do a for-each on the result from the action (array of sys_ids)

3.1 Do a GlideRecord Lookup for the Location based on the for-each value (sys_id)

3.2 Create the Catalog Task as you want.

 

If you are not familiar with Flows and Actions, please have a look at the documentation: https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/flow-designer/concept...

Samyak Jain2
Tera Guru

can you give me ascript of glide record in lookup for the location one.

You don´t need a script.

find_real_file.png

Samyak Jain2
Tera Guru

My requirment is very urgent i am giving my instance url & id password can you do for me otherwise please provide your instance id & password i will see it. please help me its very urgent. 

Samyak Jain2
Tera Guru

find_real_file.png

Im anot getting how to insert the value i.e action variable.