How to send catalog variables to actiom script in flow designer

Snehal13
Kilo Sage

I have a catalog items that has 4 fields - email,  name, comments , age and want to pass this values dynamically from attached flow to a action (rest step) using flow designer.  This action step will then make rest api call using these paras and update a 3rd party platform and get a new account created in 3rd party platform. 

 

I have a flow , subflow and action step which makes the rest api connection.  

 

How to pass values from flow to action using flow designer 

 

From my flow to subflow,  I am.already having get catalog variables action buy when making sub flow to action call, I see no option.

 

 

How to achieve this dynamically from flow designer . Not looking for scripting but flow designer approach 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Snehal13 

You are calling subflow from flow and passing the catalog variables to subflow

1) Then within your subflow you already have the variables, make your flow action accept inputs and then when you call it from subflow pass those.

Adding Action Inputs 

See below how I am passing input to flow action from subflow, enhance

subflow to flow action pass inputs.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

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

View solution in original post

4 REPLIES 4

Chaitanya ILCR
Kilo Patron

Hi @Snehal13 ,

1 add a new input to the action to take variables as input from and pass the variables from the subflow or flow as a input to the action

2. write a script inside the action and extract the variable info

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Both points are already in place but not working. My question is anything to pass from subflow to action when making call to subflow 

Ankur Bawiskar
Tera Patron
Tera Patron

@Snehal13 

You are calling subflow from flow and passing the catalog variables to subflow

1) Then within your subflow you already have the variables, make your flow action accept inputs and then when you call it from subflow pass those.

Adding Action Inputs 

See below how I am passing input to flow action from subflow, enhance

subflow to flow action pass inputs.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Snehal13 

Would you mind closing your earlier questions by marking appropriate response as correct?

Members have invested their time and efforts in helping you.

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