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
Vinay BandaVinay Banda 

Not fetching record details

Hi All,
 I've created simple page to show contact basic info. When I used preview and it is opening in context of Contact but I used record id to see values of specific records. code not fetching any records.


<apex:page title="Contact" standardController="Contact">
    <apex:pageBlock title="Contact Summary">
            Name: {! Contact.FirstName } <br/>
            Phone: {! Contact.LastName } <br/>
            Email: {! } <br/>

Please let me know what could be the issue.
Best Answer chosen by Vinay Banda
Magesh Mani YadavMagesh Mani Yadav

Hi Vinay,

You need to pass "id" param with the 15/18 char record id in the URL like this
Hope your issue is resolved.