Apex Class: TitanSignBulkInstantURL
When to Use this Apex Class
Use the TitanSignBulkInstantURL Apex class to generate an instant signing URL for multiple Titan Sign templates that will be signed together in a single signing session.
This class creates and saves the signing URL to a designated field on the triggering record. It includes an invocable method that can be called from a Salesforce Flow to automatically trigger the Bulk Sign process and generate the URL for the first signer in the session.
What are the Relevant Input Parameters?
The TitanSignBulkInstantURL Apex class accepts the following input parameters:
Required:
- formHash (String) – The unique identifier of the first Titan Sign template.
- formHash2 (String) – The unique identifier of the second Titan Sign template.
- recordId (ID) – The Salesforce record triggers the Bulk Sign process.
- Field API Name (String) – The API name of the Salesforce field where the generated Bulk Sign URL will be stored.
- URL Expiration (Minutes) (Number) – The duration (in minutes) before the generated URL expires.
Not Required:
- formHash3 (String)
- formHash4 (String)
- formHash5 (String)
- Only the first signer’s URL is generated and saved to the specified field.
- Once generated, the signer’s URL must be distributed through your process. Titan does not send this link automatically, but delivers all subsequent signer links.
- The class supports up to five Titan Sign templates in a single Bulk Sign session.
Where can you access the formHash?
- Open the relevant Titan Sign project.
- Navigate to Document → Settings → Document Access.
- Under Access Type, select Dynamic.
- Go to Salesforce Configuration.
- Choose an object, such as Account, and select APEX / Process Builder / Flow.
- Copy the ftFormHash value displayed.
Next, return to your Salesforce Flow and paste the copied value into the formHash field of the Form_Builder_TitanSignBulkInstantURL Action.
To add formHash2 (or additional form hashes), repeat the same process in a different Titan Sign project, then copy and paste each ftFormHash into the corresponding field.
To access formHash3, formHash4, and formHash5, follow the process documented for formHash and formHash2.
What does this Apex Class Return?
The TitanSignBulkInstantURL Apex class returns a Bulk Sign Instant URL that provides access to a single signing session for the included Titan Sign templates. This URL is automatically saved to the field specified in your Flow configuration.
Does this Apex Class have any Limitations?
The field selected to store the Bulk Sign URL must be a Long Text Area (minimum 1024 characters) to capture the entire URL without truncation.
Can Titan Customers use this Apex Class?
The TitanSignBulkInstantURL class is available to all Titan Sign customers and can be added to Salesforce Flows to automate Bulk Sign session creation.