Missing message from decline callback
Wednesday, June 1, 2022 at 11:14amAny thoughts on why message is null? I entered text on the decline to sign. I received the decline event notification.
Event:
11:05:02:031 USER_DEBUG [16]|DEBUG|ossCallback: OSSCallback:[documentId=null, message=, name=PACKAGE_DECLINE, packageId=z8dM5486HxkamDPcX9kZ6x6Ma0A=, sessionUser=c1d15155-6ddd-4c5a-881a-e2d0f1cb5cc0]
This is my rest resource class:
@RestResource(urlMapping='/oss/callback')
global with sharing class OSSCallbackResource {
@HttpPost
global static void callback() {
OSSCallback ossCallback = (OSSCallback)JSON.deserialize(RestContext.request.requestbody.tostring(), OSSCallback.class);
OneSpan_Event__e platformEvent = new OneSpan_Event__e(
Name__c = ossCallback.name,
Package_ID__c = ossCallback.packageId,
Session_User__c = ossCallback.sessionUser,
Document_ID__c = ossCallback.documentId,
Message__c = ossCallback.message
);
EventBus.publish(new List<OneSpan_Event__e>{platformEvent});
System.debug('ossCallback: ' + ossCallback);
}
global class OSSCallback {
global String name;
global string sessionUser;
global String packageId;
global string message;
global String documentId;
}
}
Reply to: Missing message from decline callback
Wednesday, June 1, 2022 at 12:19pmHi Peter,
I can reproduce the same - below is an example payload that I captured where the message appears as an empty string:
{"name":"PACKAGE_DECLINE","sessionUser":"a221ee1c-e69c-436c-9036-4aa5c7d4f9d0","packageId":"xyJEta8OeU_TiCD_djE3BvBwNqk=","message":"","documentId":null,"createdDate":"2022-06-01T17:10:00.602Z"}
If you already have a support ticket opened, please provide our findings there, otherwise I'd also like to file one on your behalf.
Duo
Reply to: Missing message from decline callback
Wednesday, June 1, 2022 at 12:47pmI created a support case: Case number: CS0100354
Thank you for looking into it!
Peter