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.

URL: https://c.ap2.visual.force.com/apex/ContactView?core.apexpages.request.devconsole=0032800000WyJgW

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

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

https://c.ap2.visual.force.com/apex/ContactView?id=0032800000WyJgW
Hope your issue is resolved.