• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

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.

 

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines