node.jsdocusignapidocusignconnect

DocuSign API: issues sending as a different user with multiple recipients


UPDATE: our business logic uses the pause_before workflowStep (which the webhooks do businessy stuff then unpause). the user who created the envelope MUST be the same user who calls unpause.

SUGGESTION for devs: calling envelopesApi.update() should throw an error if the update doesn't work in this scenario. instead, it returns the same success as a real success. thanks :)

I am trying to send an envelope with multiple recipients as a different user on my company account.

I set up OAuth consent for JWT (https://www.docusign.com/blog/developers/oauth-jwt-granting-consent) and can successfully send from any of our users. Note - we are currently using the "individual consent url" method.

The issue is that our envelopes have multiple recipients and only the first recipient gets an email.

I have confirmed the behavior in multiple ways:

  1. the envelope does all our fancy stuff when sending as the main accountId
  2. we have several webhooks set up to fire on recipient sent and recipient complete ... when on the main accountId, we see expected sent-completed-sent-completed-etc pattern ... but when sending as any other user, we only see a sent-completed for the first recipient
  3. when looking at the inbox (https://appdemo.docusign.com/documents) and clicking on an individual envelope ... on the main accountId, I can see all users under recipients as well as all the recipients when expanding the signing order diagram ... on any other user, all the recipients past the first one are missing BUT they all still appear under the signing order diagram (same as the main accountId envelope)
  4. I have put our code into debug mode and paused before sending the envelope ... both ways look nearly identical. the only differences are the accessToken and accountId (I even tried with the obtained access token for the individual user and accountId for the main user. same result)

Relevant info:

My $$$ is on some docusign setting for individual users beyond just granting consent to send as them. The biggest flag for me is #3 - the other recipients are missing from the envelope BUT still appear on the signing order diagram (email and all). How is this possible??

Any advice would be greatly appreciated!

Cheers


Solution

  • Don't see your code but I wonder if you have routingOrder like 1, 2, 3 such that only the first recipient gets to sign first and only then the second one would get the email?

    Other option is that you added clientUserId for embedded signing, that would suppress the email messages.

    Yet another option is the envelope workflow was paused after the first user and it has to be unpaused for the next email to go out.