Skip to main content
Conga Support

URLENCODE function for illegal characters in button URL

Cause

The "#" symbol in your Invoice Key field causes a problem when it's used in the Conga Composer button URL as pv1 for the report, as it's not a "browser-friendly" character. We can use Salesforce's URL Encode function to fix this.

What to do

To do so, edit your Composer button URL. Insert the URLENCODE function into the report ID's pv1 parameter.

It should look something like this:

...~pv1={!URLENCODE(text)}

You'll replace "text" with the field for the Project Invoice Key. Note that you'll need to remove the {} from either side of your merge field name for Project Invoice Key, otherwise the URLENCODE function will throw an error.

The whole thing should look something like this:

...~pv1={!URLENCODE(Project.Invoice_Key__c)}