Skip to main content
Participant
January 11, 2021
Question

This page requires a CSRF confirmation token (Apex class salesforce)

  • January 11, 2021
  • 1 reply
  • 1800 views

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.

 

    This topic has been closed for replies.

    1 reply

    LinSims
    Community Expert
    Community Expert
    January 11, 2021

    Let me move this to the Adobe Sign forum for you, which is the appropriate forum for your question.

    The Using the Community forum is for help in using the Adobe Support Community forums, not for help with specific programs. Product questions should be posted in the associated product community.