Pass file as input to a Subflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
so what did you start with and where are you stuck?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have a flow that creates a CSV file dynamically using BeginFile action. Later on, the flow will conditionally invoke a subflow, which should append line items to the file. In case of successful completion of the parent flow, the file will be attached to an email and sent to designated teams. I cannot find a way to pass the File data pill that was created by BeginFile to the subflow. Looking for recommendations on how to best solve this problem.
