For reference, please see this: Check document status DocuSign
The problem in that Answer in my case is this:
If Envelope status = Completed, you can safely assume that each Recipient in the envelope workflow supplied all information that the Sender marked as Required
.
And that's because, in my workflow, an Envelope is Sent to the first recipient by a REST API script. The first recipient signs. That triggers an automatic email, via the DocuSign Template settings, for a Counter Sign person to sign.
Problem is that, my script keeps running every 10 minutes, and as soon as the first recipient signs, the Envelope's Status is returned as 'complete' and I record that in our local database. But if the quoted part above is correct, the Envelope's status should NOT be 'completed' when only the first person has signed off.
What I could do, in my script (ColdFusion), is to first check an Envelope's status. If the status is 'completed' then call this:
#Application.DocuSign_APIURL#/#Application.DocuSign_AccountID#/envelopes/#url.envelopeid#/recipients
and then find the second recipient's status to check if its also 'completed' before recording into my database--it can be done, I think, but is there a better way than this? Already my script is doing a lot of things.
Thanks!