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,

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.