Pass file as input to a Subflow

ILYA STEIN
Tera Guru

I am creating a subflow that needs to append to a file opened in the parent flow. The file is a CSV, created using Begin File. I am not finding a way to pass this file into the subflow as input. Any ideas how to do this, please?

1 REPLY 1

nayanmule
Tera Guru

@ILYA STEIN  , If you are above Yokohama release then we have a input called 'File Attachment' in the subflows. I have never really used it, but you can try this in your scenario. 

nayanmule_0-1766759294934.png

 

I believe that we still have a limtation to this to add a single attachment per record. 

Kindly refer the docs here - https://www.servicenow.com/docs/bundle/yokohama-build-workflows/page/administer/flow-designer/refere...

 

If you are dealing with multiple attachments , then you need to lookup the attachment table in your flow and pass the attachment sys_id/s to the subflow. I know this would involve multiple steps but that's the only solution I think at this moment.

 

If my response has helped you , kindly mark it as helpful and accept the solution.

Regards,'

Nayan