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
Garrett SamuelsGarrett Samuels 

Custom Link to Report

Hello,

I have a visualforce page on the Account object that has an embedded report chart. I also at the bottom of the chart have a hyperlink that opens a report in a new tab, filtered by account id. I tested the hyperlink, and it adds the 3 extra characters to the account id, so the report shows blank values. 

Here is the hyperlink: 
<a href="https://na20.salesforce.com/00O14000008X5J7?pv0={!Account.Id}" target="_blank">Net Invoiced Target vs. Actual</a>
So the report is filtered by an 18 character account id, such as 001a000001SBbIYAA1, when it only works at the 15 character of 001a000001SBbIY. Does anyone know how to update code to pass the 15 character id?