After the package upgrade, we encountered an issue with the existing Adobe button, which had conditional template IDs.
Error: Uncaught Error in $A.getCallback() [Cannot read properties of null (reading 'protectedSettings')]
Callback failed: apex://echosign_dev1.AgreementComponentController/ACTION$getSettings
Existing Logic:
We utilized a hyperlink formula field to dynamically generate agreement URLs:
IF(
Quantity > 0,
"/apex/echosign_dev1__AgreementTemplateProcess?masterId=" + Id + "&templateId=a0G3A00000ShTyt",
IF(
TEXT(use_case__c) = "Mobile Wallet - Rate",
"/apex/echosign_dev1__AgreementTemplateProcess?masterId=" + Id + "&templateId=a0G4V00000WiB6UAV"
))
IF(
Qty>0,
“a0G3A00000ShTyt”
IF(
Use_Case=’Mobile Rate”
,”a0G4V00000WiB6UAV”,
,””
)
<apex:page standardController="Opportunity">
<h1>Send Agreement</h1>
<a rendered="{!CONTAINS(Opportunity.Create_Agreement_Payments__c,'a0G')}" href="{!URLFOR('/apex/echosign_dev1__AgreementTemplateProcess',null, [masterId = Opportunity.Id,
templateId=Opportunity.customfld__c])}" target="_blank">
</apex:page>
Fill out the following form & we will get back to you.