Read file
activity, and ensure you have selected encoding as binary in Input Parameters section.fileContent
in Output parameters section.Encode String
activity with fileContent
as input. Remember to set isBinary
as true otherwise you will get an error during API call. Return base64EncodedOutput
as an output parameter.Custom Script
activity and create base64Encoded
as input parameter, and optionsPost
as an output parameter.base64Encoded
with base64EncodedOutput
from previous step as we will pass base64Encoded
into our custom script later.var payload = {
"bytes": base64Encoded,
"mimeType": {
"mimeTypeString": "pdf"
}
};
return {
method: 'POST',
url: "https://validator.docusign.com/api/v1/rest/validation/validateSignature",
responseType: 'json',
resolveBodyOnly: true,
json: payload
};
optionsPost
.Call Web Service
activity and configure options input field with optionsPost
from previous step in Input Parameters section.apiResponse
in Output Parameters section.apiResponse
in message input field in Input Parameters section.res
input parameter and map the input with apiResponse
later in Input Parameters section.let signatureCount = res.signaturesReports.simpleReport.signaturesCount;
if (signatureCount > 0) {
let signatureFrom = res.signaturesReports.simpleReport.signature[0].signedBy;
let signatureFormat = res.signaturesReports.simpleReport.signature[0].signatureFormat;
var displayMsg = "Found " + signatureCount + " digital signature.";
displayMsg = displayMsg + " Signature from: " + signatureFrom + ".";
displayMsg = displayMsg + " Signature format: " + signatureFormat + ".";
return displayMsg;
} else {
return "No digital signature found.";
}
formattedOutput
as a return string in Output Parameters section.Open Message Dialog
. Select Custom Data
in dialogParams field and map formattedOuput
in message input field.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
18 | |
13 | |
10 | |
9 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 |