1

I am working on a lightning component which would allow the admin to select what type of community: Authenticated or Public. After selecting the community type, I need to show the relevant communities in the view.

I checked the Network object to see if there's field which I could use to decide a particular community is public or not but I don't find any such field to do so.

Is there's a way to get all the public and authenticated communities in Apex?

0

You can utilize the Connect API Community methods to get a listing of communities and details around them, There isn't a straight Public/Authenticated status to check. But this will get you the listing of all communities you have access to

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.