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
nav anav a 

How do we capture the user Data in VisualForce page?

How do we capture the user Data in VisualForce page?
Sumit Kumar Singh 9Sumit Kumar Singh 9
You can use global variable $User -
<apex:page>
    Hello  {!$User.FirstName}
</apex:page>

Thnaks,
Sumit Kumar Singh
 
Amit Chaudhary 8Amit Chaudhary 8
Please check below post to know about all global variable in salesforce. I hope that will help you
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global.htm
https://help.salesforce.com/apex/HTViewHelpDoc?id=dev_understanding_global_variables.htm&language=en (https://help.salesforce.com/apex/HTViewHelpDoc?id=dev_understanding_global_variables.htm&language=en)
 
<apex:page>
  <h1>Congratulations</h1>
   This is your new Apex Page {!$User.FirstName}
   <p>The current company name for this 
      user is: {!$User.CompanyName}</p>
   <p>Is the user active?  
      {!$User.isActive}</p>
</apex:page>