You need to sign in to do that
Don't have an account?
![Kunlun Kunlun](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
How to get the default portal info in apex class?
Hi All,
We have a default portal in custom portal setting.
There is a trigger, which needs to get user's organization id and portal id, I checked document and get the organization id, but can not get portal id.
I found portal object is defined in medadata, which is "Portal" object. Is it possible to get default portal id in apex class?
Thanks
Kunlun