Docusign create signature request Template ID not recognized if from scope

Bonjour,

I can trigger an envent to create a signature request via docusign on Pipedream.

If I manually select the Template from my Docusign account on Pipedream, everything is ok. The Data received from the triggered event is well sent to Docusign which is able to customize the documents according to the sent info.

However when I try to pass the template ID through my event data, Pipedream displays an Error
Invalid template ID. ID: {{steps.trigger.event.body

I try to pass the template ID like this

	   $handle = curl_init('https://xxx.m.pipedream.net');
	   
	   $data = [
		   'template' => 'f0xxx-xx-xxx-xxx-xxxxx',
		   'role' => 'Role',
		   'subject' => 'subject',
		   'recipient' => 'mail@example.fr',
		   'recipient_name' => 'gg 360F',
		   'marque' => 'Marque du portable',
		   'serial_number' => 'Numéro de série du portable',
	   ];
	   
	   $encodedData = json_encode($data);
	   
	   curl_setopt($handle, CURLOPT_POST, 1);
	   curl_setopt($handle, CURLOPT_POSTFIELDS, $encodedData);
	   curl_setopt($handle, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
	   
	   $result = curl_exec($handle);
	   var_dump($result);

Do you have an idea whats wrong with my template ID?

Apparently when selecting the Docusign Template from the Select option in Pipedream, it includes the template Name and ID on two columns as so

Merci pour votre aide,

Hi @g.gerard,

Bonjour,

It seems like you’re trying to pass the template ID through the event data. However, to use the Docusign Create Signature Request action, you should configure the action within your Pipedream workflow instead of sending the data via an event.

Here’s how to use the Create Signature Request action:

  1. Search for the Docusign app from the step menu in your Pipedream workflow.
  2. Select the Create Signature Request action.
  3. Connect your Docusign account.
  4. For the Template field, you can use a variable from a previous step, like {{steps.trigger.event.body.template}}, assuming the template ID is passed in the event body.

Make sure you’ve set up the other required fields (Account, Email Subject, Recipient Email, Recipient Name, and Recipient Role) in the action configuration.

If you still encounter issues, please visit https://pipedream.com/support for more support options.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.

That is the problem I have. When trying to pass the template ID via the variable {{steps.trigger.event.body.template}}, Pipedream gives the Error Invalid template ID. ID: {{steps.trigger.event.body