Above flow sends the document when item is changed in SharePoint list.
Now when documents gets signed i need to attach that document to the same SharePoint item. But, since they are two different flow i can't get the ID. Any ideas?
@zmansuri, glad to hear it will work for you. I admit I do a few extra things that you don't but in my opinion they are good to do to ensure the correct actions run at the correct time. You don't want this saving the file if it failed to get the item by the ID or some other cause but of course up to you. Start with just getting it working as it and if you like you can augment to make it more error-proof. Reply if you run into trouble, I'll try to help.
----------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Thank you for responding. Sounds complicated. But i love your idea of saving envelop id in SharePoint when sending an envelope.
Thanks. I think this will work.
@zmansuri, I have a flow where I am doing something very similar. What you need to do is capture the envelope ID in the first flow where you submit it to DocuSign to a single line of text column in SharePoint. The envelopeID is on the output of the Docusign action. Add the Update SharePoint item action, and write the value to the SharePoint column:
Then on the 2nd flow, in my case I did something extra. There are many templates, and I needed to determine which ones were auto-submitted vs manually so I added a trigger condition on the DocuSign when envelope status changes to look for email of the user in DocuSign which I had to a service account like this:
@equals(triggerOutputs()?['body/DocuSignEnvelopeInformation/EnvelopeStatus/Email'],'svcacct@contoso.com')
Then after some variables, I do a get SharePoint items and filter the query for the DocuSignID (this is in the query field, remember it's the internal column name):
DocuSignID eq '@{triggerOutputs()?['body/DocuSignEnvelopeInformation/EnvelopeStatus/EnvelopeID']}'
Then I do a count in a compose to get how many records I got:
----------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1