I am trying to set the id of the current record to a variable in a flow.
My flow runs when a user presses a button from one of any number of page layouts of different objects. Therefore a user can be on an account page layout or they can be on the contact page layout and they can click on a button that runs a flow. As part of the flow I create a record and I capture some input variables from the user. However I'd also like to capture the URL or the id of the record they are currently on in order to store it for future reference, is there a way to do this either with Process Builder or Visual Workflow (Flow)?