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
Ian GoodineIan Goodine 

What is the URL for a visualforce page associated to a specific record?

I have a VF page called Material_Nonconformity_Report whose standard controller is an object called. Non_Conformance__c with object code a0t. One record Non Conformance record has an id of a0t3C00000118Df.

The link PageReference('/apex/Material_Nonconformity_Report') gets me to a generic, unassociated preview.

What would the link be to get to a VF page associated with a specific record?
Best Answer chosen by Ian Goodine
RRochaRRocha
/apex/Material_Nonconformity_Report?Id=yourecordidhere

All Answers

RRochaRRocha
/apex/Material_Nonconformity_Report?Id=yourecordidhere
This was selected as the best answer