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
ArrowArrow 

Account ID in a parameter report

I am trying to create a hyperlink on a Visualforce Account page which will open an opportunity report.

 

Both the below variations run the report with an 18 character account id when the report requires a 15 character Account Id

 

<a href="/00OS0000000wS5N?pv0={!Account.Id}">Open Opportunities</a>

 

<apex:outputLink value="/00OS0000000wS5N?pv0={!account.id}">Open Opportunities</apex:outputLink>

 I'd appreciate advice as to what I am doing wrong.

Best Answer chosen by Admin (Salesforce Developers) 
ArrowArrow

I worked out the correct syntax:

 

<apex:outputLink value="/00OS0000000wS5N?pv0={! LEFT(account.id, 15)}">Open Opportunities</apex:outputLink>