Actaully I am new to salesforce . i want to create new visualforce page without any standard or controller in that page . this page should get only user name and user profile in single page.
Could you please help on this .
Thanks in Advance,
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityActaully I am new to salesforce . i want to create new visualforce page without any standard or controller in that page . this page should get only user name and user profile in single page.
Could you please help on this .
Thanks in Advance,
Yes, you can use a global variables of the Visualforce. In your case the $User
variable:
<apex:page >
User Name: {!$User.FirstName} {!$User.FirstName}
</apex:page>
Note that you can access only a limited number of merge fields of the User. For example you can not get a user.SmallPhotoUrl
.
Use global variable in your VF page.
http://www.salesforce.com/docs/developer/pages/Content/pages_variables_global.htm