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
tstrongtstrong 

Advanced Filters in a Report from a Custom Link

I'm trying to pass an Account name to a report with quotation marks around the name since some account names have commas in them (ex. Target, Inc.).  Does anyone know how to do this?

 

Here's my current link  URL: 

 

/00OT00000017Kr8?pv0={!Account.Name}&pv6={!Account.Name}&pv7={!Account.Name}&pv8={!Account.Name}

 

I tried adding quotes around  "{!Account.Name}" but that didn't work.

Message Edited by tstrong on 12-23-2009 12:22 PM
Best Answer chosen by Admin (Salesforce Developers) 
tstrongtstrong

Although Salesforce support says that this is not possible, it is.

 

In order to pass quotations around a value, you need to prefix and postfix it with %22. So for this custom link, it will be as below:

 

/00OT00000017Kr8?pv0=%22{!Account.Name}%22&pv6=%22{!Account.Name}%22&pv7=%22{!Account.Name}%22&pv8=%22{!Account.Name}%22

 

 

All Answers

LenyLeny

Why not use the account ID instead of name?

tstrongtstrong

Although Salesforce support says that this is not possible, it is.

 

In order to pass quotations around a value, you need to prefix and postfix it with %22. So for this custom link, it will be as below:

 

/00OT00000017Kr8?pv0=%22{!Account.Name}%22&pv6=%22{!Account.Name}%22&pv7=%22{!Account.Name}%22&pv8=%22{!Account.Name}%22

 

 

This was selected as the best answer