Get portal by worskspace code.
Example:
const portal = await System.portals.get(Namespace. code);
Get a list of portals available to the user.
const user = System.users.getCurrentUser(); const portals = await System.portals.getAvailableForUser(user);
Get a list of the company's portals.
const portals = await System.portals.list();
Your review is successfully sent!
Feedback sent successfully
External portals
Hierarchy
Methods
get
Get portal by worskspace code.
Example:
const portal = await System.portals.get(Namespace. code);Parameters
code: String
Returns Promise<Portal | undefined>
getAvailableForUser
Get a list of portals available to the user.
Example:
const user = System.users.getCurrentUser(); const portals = await System.portals.getAvailableForUser(user);Parameters
user: UserItem
Returns Promise<Portal[]>
list
Get a list of the company's portals.
Example:
const portals = await System.portals.list();Returns Promise<Portal[]>