Hi This query doesnt work for me, I dont know what I am missing that I cant query the recent Contact's entry by user that just logged in to salesforce account.
Id accountid = userinfo.getProfileId();
myConn = [SELECT Id, Name, Account.Name , Accountid
from Contact
WHERE Id = :accountid ORDER BY Name ASC Limit 10];
getProfileId
returns an Id for aProfile
record, which can never be aContact
Id.getUserId
returns the Id of aUser
record, which can also never be aContact
Id.