Assistance required for loadin Agreement record Id after Package upgrade
Hi All,
Recently we have upgraded Adobe package 25.2.1 at salesforce sandbox and did all configuration.
We have an adobe sign account and linked with my salesforce application to allow user to electronically sign document. Application is working fine if adobe account user login to salesforce(admin user) click on the sign document button, he receive a document URL and able to see document to sign it.
Not able to add the cRecipient.id at echosign_dev1.AgreementTemplateVariable as shown below it is showing AgreementTemplateVariable:[] after calling function.
Can anyone help here why the value is not able to set at below function
echosign_dev1.AgreementTemplateVariable atvContact = new echosign_dev1.AgreementTemplateVariable('RecipientContact', cRecipient.Id);
and one more issue echosign_dev1.AgreementTemplateService.load(agreementtemplateId, accountId, mapATV); is not returning agreementRecordId from non admin user while Admin user is able to get the agreementRecordId.
Sample Code :
echosign_dev1.AgreementTemplateVariable atvContact = new echosign_dev1.AgreementTemplateVariable('RecipientContact', cRecipient.Id);
system.debug('atvContact-->' +atvContact);
Map<String, echosign_dev1.AgreementTemplateVariable> mapATV = new Map<String, echosign_dev1.AgreementTemplateVariable>{'RecipientContact' => atvContact};
system.debug('mapATV-->' +mapATV);
String agreementtemplateId = [SELECT Id from echosign_dev1__Agreement_Template__c where Name = 'BusinessAssociateAgreement'].Id;
system.debug('agreementtemplateId:' + agreementtemplateId);
agreementRecordId = echosign_dev1.AgreementTemplateService.load(agreementtemplateId, accountId, mapATV);
help apreciated.
Thanks,
Mukul
