Hello,
I have 2 flows for a document approval process that I am working on.
The first one triggers when a new entry is created in Cognito forms.
Then it saves the attachment from the file upload field on the form to a folder in SharePoint.
Then the second one triggers when a file is created in SharePoint, runs the document approval step, and then sends an email notifying if the document was approved or rejected.
Currently the email address is hard coded, but the Cognito form has an email address field on it.
How can I send that email address to use in the To: field of the "Send an Email (V2)" step in the second flow?
One thing that may help, I am keeping records of the approvals in a SharePoint list, maybe I can store the email in there and retrieve it?
I am doing this in my second flow.
Not sure how I would retrieve it and make sure it is linked to the correct document that was uploaded.
Thanks!
1st flow (copies the attachment from Cognito to SharePoint):

2nd flow (creates an initial pending item in a SP list, sets off the approval process, then emails of approval/rejection moves the file to approved or rejected folder, then updates the status of the item in the SP list):


