Update Signature Request

Updates the email address for a given signer on a signature request.

🚧

This action cannot be performed on a signature request with an appended signature page.

Class: HelloSign.SignatureRequestService

Return type: HelloSign.ServiceObjects.SignatureRequestResponse

Method

Name

updateRequest()

Acceptable Parameters

Name

Type

Required

signature_request_id

String

HelloSign_Signature_Request_ID_c field from the HelloSign_HelloSign_Signature_Request_c object.

signature_id

String

The signature ID for the recipient.

email_address

String

The new email address for the recipient.

isLastCallout

Boolean

String sigReqId = [
    SELECT HelloSign__Signature_Request_ID__c
    FROM HelloSign__HelloSign_Signature_Request__c
    WHERE Id = 'a063F00000GGTQ7QAP'].HelloSign__Signature_Request_ID__c;

HelloSign.SignatureRequestService sigReq = new HelloSign.SignatureRequestService(sigReqId);

// Make a get call to retrieve the signature request information
HelloSign.ServiceObjects.SignatureRequestResponse sigReqResponse = sigReq.get();

// Select the first signer. The signature_request.signatures returns a List<HelloSign.ServiceObjects.Signature>
HelloSign.ServiceObjects.Signature firstSigner = sigReqResponse.signature_request.signatures[0];

sigReq.signature_id = firstSigner.signature_id;
sigReq.email_address = '[email protected]';
HelloSign.ServiceObjects.SignatureRequestResponse response = sigReq.updateRequest();

// Object type: HelloSign.ServiceObjects.SignatureRequest
System.debug(response.signature_request);

// Object type: List<HelloSign.ServiceObjects.Warning>
System.debug(response.warnings);