anwaykabir

send Personal Message to signer using apex sdk

0 votes

Hello, We have integrated our salesforce application with onespan using APEX SDK for our e-signature use cases. 

We want to add personal message to individual signers of the package. Could you please let me know which APEX SDK method we should use to do the same?

We saw this is possible from onespan UI (added screenshot).

 


Attachments
message.png52.67 KB

Reply to: send Personal Message to signer using apex sdk

1 votes

Hi Anway,

 

In the SDK modelling, there's a class OneSpanAPIObjects.EmailMessage enabling you to set the personal/package level messages. See the sample code below:

    OneSpanAPIObjects.Role role = new OneSpanAPIObjects.Role();
    role.id = 'signer1';
    role.signers = sdk.createRolesSigner('John', 'Smith', '[email protected]', 'CEO', 'ABC Bank');
    role.emailMessage = new OneSpanAPIObjects.EmailMessage('The personal message for signer 1!');

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: send Personal Message to signer using apex sdk

1 votes

Hi Anway,

 

As you have noticed, the package attributes will remove all html tags from the input text. To achieve the same goal, you can directly edit your email templates, the email message is represented by the placeholder $PACKAGE_MESSAGE; (documentation here). You can edit the html templates and send requests to our support team to have it configured at your account.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off