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
James_DeanJames_Dean 

How do i do this in visualforce

 
Contact c : [select id from Contact where Name = {!$User.FirstName}]
ShamSham
[SELECT Id from Contact WHERE Name = :UserInfo.getFirstName()];