+ Start a Discussion

how to check if a contact of user authentified in community exists

Can you help me to query this :

A user can fill a form in community.
how can i check if an sObject(Form__c) of the contact of the authentified user in community exists so that if it exists i update the existing form in salesforce.
I just need the query.
Raj VakatiRaj Vakati
Please use this query 
List<User> lstUser = [Select ContactId,Contac.Form__c from User where Id = :userName];