2

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,

3 Answers 3

2

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.

0

You can do that and from your requirement you could use the global variable $User

0

Use global variable in your VF page.

http://www.salesforce.com/docs/developer/pages/Content/pages_variables_global.htm

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .