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
Sagar DumbreSagar Dumbre 

Get community default record owner by Apex or SOQL

Is there any way to get below value through Apex/SOQL?

User-added image
ANUTEJANUTEJ (Salesforce Developers) 
Hi Sagar,

I don't think this would be possible to retrieve the default record owner using soql or apex however you can use a custom label to store the user id that is the current default record owner. This label you can use in apex.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
Movsar Bekaev 3Movsar Bekaev 3
You can use GuestRecordDefaultOwnerId
https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_site.htm