Flow Designer: Update Parent RITM from a SubFlow

jmiskey
Kilo Sage

I have a Catalog Item (which creates a RITM).  The Catalog Item kicks off a Flow, which calls a Subflow (I am trying to make a reusable Subflow).  I would like my Subflow to update the Work Notes field on the RITM that is created (and linked to the parent Flow).  

 

What is the best way to have my Subflow update the Work Notes field on the RITM associated with the parent Flow?

 

Thanks

1 ACCEPTED SOLUTION

jmiskey
Kilo Sage

OK, I figured it out.  Pass is the sys_id of the RITM as an Input into the Subflow, and then use an Update Record action, using the passed input for the Record field.

View solution in original post

3 REPLIES 3

jmiskey
Kilo Sage

OK, I figured it out.  Pass is the sys_id of the RITM as an Input into the Subflow, and then use an Update Record action, using the passed input for the Record field.

tim_treacy
Tera Contributor

Ok....

How?

It has been a while since I did this, and we did not end up using it after all.  But listed below are the steps I believe I took in order to accomplish this.

 

On my Subflow, I created an input value to take in the sys_id from the RITM on the Flow (see here if you need help creating Input Values on Subflows: https://developer.servicenow.com/dev.do#!/learn/learning-plans/washingtondc/servicenow_application_d...).

 

Then, in my main Flow, when calling the subflow, I just pass it the sys_id from the RITM in the Flow.

 

In my subflow, I did a Lookup Record on the RITM table using the sys_id I am passing in.

Once I have looked up that record, I used an Update Record action to update any fields in that RITM.

 

Hope that helps!