flow designer - How to use subflow inputs in subflow script

Sonali Jadhav
Mega Expert

Hi,

I have created flow designer for one catalog item and using subflow in that .

I am passing trigger requested item as input in subflow.

How to use those input variables in catalog task description script. I want to use RITM's sys_id in subflow script.

can someone please help.

 

find_real_file.png

 

Regards,

Sonali j

 

1 ACCEPTED SOLUTION

So can you share a bit of what you are scripting? Anyway, without knowing that, you do have a subflow input "ritm", you can access that in script using:

var ritm_sysid = fd_data.subflow_inputs.ritm

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

9 REPLIES 9

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Can you clarify your question? What is your understanding of "subflow script".

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

 

I have created flow designer for catalog item and in that flow designer I am using subflow.

Subflow contains some set of catalog tasks , and for that catalog tasks description I need sysid of parent RITM .

subflow in flow designer:-

find_real_file.png

 

subflow inputs:-

find_real_file.png

 

Regards,

Sonali J

Can you use below instead in your Flow? That would provide you with the sys_id of the newly generated Requested Item (= tested). And obviously, you could use that as input for your subflow.

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

 

How can we use this input in script?

I want to use that sysid in below highlighted script:

find_real_file.png