The CreatorCon Call for Content is officially open! Get started here.

Subflow Create Record Sys ID

AmolJ
Tera Expert

I have a subflow that creates a record using "Create Record" action. Unfortunately this subflow does not have any output variables. I am trying to get the sys_id of the record created by this flow so I can use it in a reference field down the track.

 

When I go to the step where this subflow is used; I only see "Context" and I am not sure how to get the sys_id of the record. I tried the "sys_id" field under the context and also the "Source Record" field under the context but that doesn't work.

AmolJ_0-1757800748426.png


As I have multiple steps following the subflow, I don't want to change subflow at this moment as otherwise I will need to change the reference in multiple steps below and may also have to redo these steps.

Any hints?

Thanks !

5 REPLIES 5

AmolJ
Tera Expert

Thank you Bhuvan, Ankur and Kaushal. I ended up with a look up record and then grabbing the sys_id from there for the time being but I will keep all your input in mind. Bhuvan's input could also be greatly helpful but I can't try it now. I will try it on my PDI soon. Thank you all.