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

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];