You can create and test a Dynamo Task API–compatible application template (DAP) using the Dynamo Template Builder.
If the Task API is not yet enabled for your organization, email support@documill.com to request a trial license.
Create an API Template
-
Open the Dynamo Template Builder, and select the Blank template from the New Template tab.
-
Select the templates main object. This will be the starting point of the generated document.
-
Add content and logic to the template. Check this guide for more information.
-
Using the Test button, verify that the output is correct.
-
In the template settings, set the start view to “No screen (API emulation).
-
If not yet enabled, enable the API button in the Template Builder settings.
-
Ensure that Autosave on exit is enabled in the Settings. This ensures the generated document is Saved back to Salesforce.
-
Test with the API button to verify that the template works correctly in an API context.
-
In the API tab, click the Send button.
-
The response indicates whether the template executed successfully. Any errors are also logged here.
-
Click on the “Save” button to save the template to Salesforce.
The API template can now be triggered with an automation such as a Salesforce flow. Check the Salesforce setup to continue the process.