Query package fails only for 'Change Signer' usecase
Monday, November 25, 2019 at 05:47amHello,
We have integrated our salesforce application with onespan using APEX SDK for our signature use cases. We have setup below usecase which is working fine.
1. Sent e-signature request to John smith (only one signer on the package).
2. John Smith signs the document.
3. we query the package using below code, we can retrieve the package details and do necessary operations by parsing the JSON. We used below code to retrieve the package.
OneSpanAPIObjects.Package_x pkg = new OneSpanAPIObjects.Package_x();
OneSpanSDK sdk = new OneSpanSDK();
pkg = sdk.getPackage('wxZW2jEcl1DTCchw8P8Ygxu8Z3A=');
Now below scenario is failing:
1. Sent e-signature request to John smith (only one signer on the package).
2.John Smith re-assigns the signer to Tom Murphy by clicking 'Change Signer' button.
3. Tom Murphy signs it.
4. Now, we query the package using below code:
OneSpanAPIObjects.Package_x pkg = new OneSpanAPIObjects.Package_x();
OneSpanSDK sdk = new OneSpanSDK();
pkg = sdk.getPackage('3tdG1ROOaVIoErcgazoq6f1jE-Y=');
but below is the error that we are getting:
FATAL_ERROR Class.OneSpanRESTAPIHelper.getPackage: line 770, column 1
OneSpanRESTAPIHelper.OneSpanRestAPIHelperException: Error getting the Package: Illegal value for primitive
Please note for this same transaction we are able to retrieve the Audit document by using:
String auditBody= sdk.getAudit('3tdG1ROOaVIoErcgazoq6f1jE-Y=');
Thanks
Anway Kabir
Reply to: Query package fails only for 'Change Signer' usecase
Monday, November 25, 2019 at 09:38ampublic String data;
However, the actual type should beMap
-- I've created a Github issue for you. Duo