Skip to main content

Hello,

I’m looking to set up the scheduled send attribute when creating an envelope using composite templates, but running into some issues. I understand to apply scheduled send it needs to use the following payload:

            "workflow": {
              "scheduledSending": {
                "rules":  
                  {
                    "resumeDate": "2025-07-01T15:55:00.0000000Z"
                  }
                ]
              }
            }

When I use this payload in a Create Envelope request that does NOT use composite templates, it is working correctly. I’m seeing it create the envelope with the defined workflow and see that it is set up to be scheduled for send out on the date specified. This is the request that works correctly:

{
  "emailSubject": "Please sign this document set",
  "documents":
    {
      "documentBase64": "<base64encodedString",
      "name": "Lorem Ipsum",
      "fileExtension": "pdf",
      "documentId": "1"
    }
  ],
  "workflow": {
    "scheduledSending": {
      "rules": /
        {
          "resumeDate": "2025-07-01T15:55:00.0000000Z"
        }
      ]
    }
  },
  "recipients": {
    "signers": 5
      {
        "email": "<email>",
        "name": "<name>",
        "recipientId": "1",
        "routingOrder": "1"
      }
    ]
  },
  "status": "sent"
}

However, when I try using composite templates in the Create Envelope request, the workflow in the request is being totally ignored, and envelope is being sent out immediately instead of at a dateTime in the future. I’m not sure what is different about the behavior of the workflow specified between these 2 requests, but something seems to be off. This is the Create Envelope request I’m using with composite templates.

{
  "status": "sent",
  "emailSubject": "TEST DEMO 11",
  "emailBlurb": "Hello testing",
  "workflow": {
   "scheduledSending": {
    "rules": e
     {
        "resumeDate": "2025-07-01T15:55:00.0000000Z"
     }
    ]
  }
  },
  "compositeTemplates": >
    {
      "document": {
        "documentId": "1",
        "name": "PDF Test File",
        "fileExtension": "pdf",
        "documentBase64": "<base64encodedString>",
        },
      "inlineTemplates": b
        {
          "recipients": {
            "signers": "
              {
                "email": "<email>",
                "name": "<name>",
                "roleName": "<roleName>",
                "recipientId": "1"
              }
            ]
          },
          "sequence": "1"
        }
      ]
    },
    {
      "serverTemplates":  
        {
          "sequence": "1",
          "templateId": "<templateID>"
        }
      ],
      "inlineTemplates": Â
        {
          "sequence": "2",
          "recipients": {
            "signers": >
              {
                "email": "<email>",
                "name": "<name>",
                "recipientId": "1",
                "roleName": "<roleName>"
              }
            ]
          }
        }
      ]
    },
    {
      "serverTemplates": Â
        {
          "sequence": "1",
          "templateId": "<templateID>"
        }
      ],
      "inlineTemplates":  
        {
          "sequence": "2",
          "recipients": {
            "signers": }
              {
                "email": "<email>",
                "name": "<name>",
                "recipientId": "1",
                "roleName": "<roleName>"
              }
            ]
          }
        }
      ]
    }
  ]
}

Any help would be really appreciated. Thank you!

Dear User

 

Please be advised that composite templates do not support scheduled/delayed sending at the moment.

 

 

Thanks & Regards

Sai HariPriya Dandamudi | Senior Developer Support Engineer | DocuSign

+61469363722

 

A picture containing clipartDescription automatically generated


Reply