This page requires a CSRF confirmation token (Apex class salesforce)
We have an App and inside the app we are using the adobe sign functionality. Post Adobe sign 22.9 , we are facing an issue
'
'The link you followed isn’t valid. This page requires a CSRF confirmation token. Report this error to your Salesforce administrator.''
Till Now, In our salesaforce apex class , we were using the static url
public static String getEchosignPageUrl(String objectId, String templateId) {
return '/apex/echosign_dev1__AgreementTemplateProcess?masterid='
+ COMMON_UT_StringUtilities.urlEncodeUTF8(objectId)
+ '&templateId=' + COMMON_UT_StringUtilities.urlEncodeUTF8(templateId);}
To overcome this CSRF confirmation token issue we have changed it to
String echoSignUrl = Page.echosign_dev1__AgreementTemplateProcess.getUrl();
Then append the Master id and template id to this URL.
When our salesforce app is being downloaded to an org, where echosign is not installed. Our app does not installed and give
error 'Page Not Found' .
In Nutshell, our app can not be installed on the org where echosign not already installed, But it works and installed
without issue where echosign already installed.
Can some one plese advise any solution to this issue.
