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 

Visual force page 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 recors. code not fetching any recors.

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
SandhyaSandhya (Salesforce Developers) 
Hi Vinay,

To see the details of particular record you need to give https://c.ap2.visual.force.com/apex/ContactView?id=0032800000WyJgW in visual force page URL.


Hope this helps you!

Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
 
Thanks and Regards
Sandhya

 

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi Vinay,

To see the details of particular record you need to give https://c.ap2.visual.force.com/apex/ContactView?id=0032800000WyJgW in visual force page URL.


Hope this helps you!

Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
 
Thanks and Regards
Sandhya

 
This was selected as the best answer
Vinay BandaVinay Banda
Thank you Sandhya, your solution worked well.

In self training trailhead its given as "https://c.ap2.visual.force.com/apex/ContactView?core.apexpages.request.devconsole=0032800000WyJga".