Add Sender to the package
Thursday, June 20, 2019 at 02:59amHi,
We are integrating esign with Salesforce. When we create a package, the owner of the eSign Live becomes the sender of the package. Is there a way to send the package as another user in esign account?
Regards
Ranjan
Reply to: Add Sender to the package
Thursday, June 20, 2019 at 05:44ampublic with sharing class TestSendOnBehalfOfSender { public String testSendOnBehalfOfSender() { //Create esl client OneSpanSDK sdk = new OneSpanSDK(); //Create package OneSpanAPIObjects.Package_x pkg = new OneSpanAPIObjects.Package_x(); pkg.name = 'Test Send On Behalf Of Sender - ' + Datetime.now().format(); OneSpanAPIObjects.Sender sender = new OneSpanAPIObjects.Sender(); sender.email = 'sender_email_under_your_account'; pkg.sender = sender; String packageId = sdk.createPackage(pkg); System.debug('PackageId: ' + packageId); return packageId; } }We did some rebrand in class naming convention (from ESignLiveSDK to OneSpanSDK, so on so forth), but you can easily replace the name by keywords "ESignLive" and "OneSpan". Hope this could help! Duo