I've created a Flow in Salesforce. The goal is to use an existing global action to create a case then allow the user to add an attachment to the case. Here's a picture of what I've got:
The issue I'm running into is that in order to upload an attachment you need to pass through the Related Record ID.
The global action should be creating a record and the recordId which I would then need to assign to a variable that I can reference in my flow. However, I'm not able to find how to assign the recordId created by the global action to a variable.
I'm referencing this document which shows how it's done using the stand Create Record palette tool - https://trailhead.salesforce.com/modules/business_process_automation/units/flow
Any suggestings would be greatly appreciated!