Tharun
Tharun

Reputation: 19

Move envelopes Feature in Docusign

Problem: Envelopes moved to recycle bin are been showing up in the report even after 2 days. We are using EnvelopesApi.listStatusChanges to get the envelope status

Description:

We are using move envelopes feature to move the envelopes to the recycle bin and eventually after 1 day the envelope being moved is removed from the account and we can no longer see the envelope in any of the folders. But interestingly the envelope that's been moved is shown up when we made an API call EnvelopesApi.listStatusChange and even it's been showing up when we made the Rest call get envelope status /accounts/{accountId}/envelopes

Question

Is there a way to identify such kinds of envelopes that have been moved to recycle bin and no longer been available in any of the folders but shown up through the API Calls?. Looking to see if we can identify such kind of envelopes with any parameters that have been returned from any of the API calls

Upvotes: 0

Views: 227

Answers (1)

Amit K Bist
Amit K Bist

Reputation: 6818

You should call below URI, as documented here:

GET /v2/accounts/{accountId}/folders

to know all the folders you have access to, this will also return the recyclebin folder uri, response will be like below:

    {
      "ownerUserName": "Sender Nae",
      "ownerEmail": "[email protected]",
      "ownerUserId": "87b00103-461d-487b-8928-1991dfdb8d19",
      "type": "recyclebin",
      "name": "Deleted Items",
      "uri": "/folders/2fdc7ffc-60d5-4c36-9f9a-1410c30de0eb",
      "folderId": "2fdc7ffc-60d5-4c36-9f9a-1410c30de0eb"
    }

Now, read folderId or uri from the response for type - recyclebin, and call below uri to know all the envelopes which have been moved to recyclebin. Details are available at DS Docs

GET /restapi/v2/accounts/{accountId}/folders/2fdc7ffc-60d5-4c36-9f9a-1410c30de0eb

Upvotes: 1

Related Questions