You need to sign in to do that
Don't have an account?
kailash chandra
how to get all community pages by apex
I need to list all community pages in dropdown on lightning pages.
How can I get all community pages using apex ?
Regards
------------
Kailash Chandra
How can I get all community pages using apex ?
Regards
------------
Kailash Chandra
You can soql query as:
SELECT Domain, DomainType FROM Domain
SELECT Name, UrlPathPrefix FROM Network
You will get the domain and then all communities and build your logic.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha.