function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chiyaan AnanthChiyaan Ananth 

URL issues when linking a custom report to accounts

Hi All,

 

I have added a custom link in Accounts to a custom report.  And I use https://na2.salesforce.com/" + reportId + "?pv0={!Account.Name} which works great in my developer account.  Does the URL(https://na2.salesforce.com) varies for trial and production accounts?  I tried with a trial account where the URL looks like https://ap1.salesforce.com/.  So I am asked to reenter my login details to access the page.  So what would be the solution for this.  I do not want the user to sign twice to access the report.

 

Any help on this would be greatly appreciated.

 

Ananth Chellathurai

Blog

Chiyaan AnanthChiyaan Ananth

I have found a way to fix the issue I guess.  When I try like this /reportId?pv0={!Account.Name} without https://na2.salesforce.com or https://ap1.salesforce.com/ it works fine.  And I am landing well in the expected report.

 

Does this fix my problem?  Am I missing something else which could cause any issues?

 

Regards

Ananth Chellathurai

Blog