Resolving Adobe Send Agreement Button Issues

Blog > Resolving Adobe Send Agreement Button Issues Post Package Upgrade

Troubleshooting: Uncaught Error in $A.getCallback() - Adobe Agreement URL Not Working

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"
))


Workaround:
The formula field was converted into a text formula field to output the template ID. Additionally, a Visualforce (VF) page was developed to dynamically generate the URL, which was then embedded into the page layout


IF(
Qty>0,
“a0G3A00000ShTyt”
IF(
Use_Case=’Mobile Rate”
,”a0G4V00000WiB6UAV”,
,””
)


VF Page Code:


<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>



Replace “customfld__c” with your field.

That is how you can resolve Adobe Send Agreement Button Issues Post Package Upgrade or Uncaught Error in $A.getCallback() - Adobe Agreement URL Not Working.

Crafting Tomorrow's Solutions Today.

Got something on your mind! Connect with us.

Fill out the following form & we will get back to you.