Loading

Get Community ID using Apex

게시 일자: Nov 23, 2023
상세 설명
The mentioned snippet will retrieve the Ids of the Communities the running user has access to.
솔루션

The IDs of the Communities can be found when executing the following debug log statement:

System.debug('#####' + ConnectApi.Communities.getCommunities());

This statement retrieves the list of Communities the running user has access to.

Additional Reference: More on the communities class methods

Knowledge 기사 번호

000386512

 
로드 중
Salesforce Help | Article