anwaykabir | Posts: 23

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
Duo_Liang | Posts: 3776

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


anwaykabir | Posts: 23

Reply to:

0 votes

Thanks for your response. I tried passing some html tags for bold or background colors to highlight the message text on the email, the same is not working. Do you know if there is any other way we can do the same here?


Duo_Liang | Posts: 3776

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


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