Single GlideRecord as an output from a subflow

Jamsta1912
Tera Guru

Hi all,

I'm playing around with subflows. I can see that I can create an output variable with type Records.Incident (and then I can assign a collection of GlideRecords to that), or I can create an output variable with type Reference.Incident (and then I can assign the sys_id of a individual GlideRecord to that). Is there a way to assign a single GlideRecord (the whole record, not just the sys_id) to an output variable? Type 'Records.Incident' seems to allow only a collection, not a single record.

 

Thanks

1 ACCEPTED SOLUTION

AttilaVarga
Tera Guru

Hi Jamsta,

 

Please take a look at the images below how I got GlideRecord and logged some fields of it.

 

First, I defined a SubFlow with the Reference.Incident output. I took an random incident record and assigned it to the output variable

AttilaVarga_0-1675002518275.png

The test result can be seen on the next image:

AttilaVarga_3-1675002919024.png

 

Than, I created a Flow and added my SubFlow to the action list, and logged the number and the caller of the Incident:

AttilaVarga_5-1675002991183.png

You can see that the output of Subflow contains the whole record, not just the sys_id. I would recommend to try it again on your side.

 

Best regards,

Attila

View solution in original post

1 REPLY 1

AttilaVarga
Tera Guru

Hi Jamsta,

 

Please take a look at the images below how I got GlideRecord and logged some fields of it.

 

First, I defined a SubFlow with the Reference.Incident output. I took an random incident record and assigned it to the output variable

AttilaVarga_0-1675002518275.png

The test result can be seen on the next image:

AttilaVarga_3-1675002919024.png

 

Than, I created a Flow and added my SubFlow to the action list, and logged the number and the caller of the Incident:

AttilaVarga_5-1675002991183.png

You can see that the output of Subflow contains the whole record, not just the sys_id. I would recommend to try it again on your side.

 

Best regards,

Attila