Skip to main content
Version: 1.28 (Current)

Load Portal

Audience: Low-code Engineers

Skill Prerequisites: Actions, Tokens

Reads the details of a DNN portal (site), such as its name, administrator and default language, into tokens. Leave the identifier empty to load the current portal.

note

This action is part of the Portal Management add-on, which is installed and licensed separately (feature package PORTAL). If it isn't licensed, the action fails with a not-licensed error.

Typical Use Cases​

  • Get the current portal's administrator or email to send a notification
  • Check that a portal ID exists before updating or deleting it
  • Read the portal's default language or culture to format content
  • Show portal details in an admin tool

Don't use it to​

  • Find a portal by alias or name. Only a portal ID or GUID works. Look the ID up with Run SQL Query first if you only have the alias.
  • Load a page or module. Use Load Page or Load Module instead.
Action NameDescription
Create PortalCreates a portal and returns its ID.
Update PortalChanges the portal's name, administrator, keywords, description or email.
Delete PortalDeletes a portal.
Load UserLoads the administrator's details from the loaded Administrator Id.
Load PageLoads a page's details into tokens.

Input Parameter Reference​

ParameterDescriptionSupports TokensDefaultRequired
Portal IdentifierThe portal to load, as a portal ID (for example 3) or portal GUID. Leave it empty to load the current portal.Yesempty stringNo

Output Parameters Reference​

Each parameter is the name of a token that receives one value. Square brackets are optional. Leave a parameter empty to skip that value. Tokens aren't applied to these names.

ParameterDescription
Store Portal Name inReceives the portal name.
Store Administrator Id inReceives the user ID of the portal administrator.
Store Portal CreatedByUserID inReceives the ID of the user who created the portal.
Store Portal CreatedOnDate inReceives the date and time the portal was created.
Store Culture Code inReceives the portal's culture code, for example en-US.
Store Default Language inReceives the portal's default language, for example en-US.
Store Portal Email inReceives the portal's email address.
Store LastModifiedByUserID inReceives the ID of the user who last changed the portal.
Store LastModifiedOnDate inReceives the date and time the portal was last changed.

Considerations​

  • The identifier must be an ID or a GUID. Anything else, or an ID that doesn't exist, makes the action fail with LoadPortal action: Could not identify portal.
  • An empty identifier needs a current portal. If the action runs where there's no portal in context, it fails with Can not load current portal without portal into context.
  • There's no permission check in the action. Anyone who can run it can read these details for any portal in the installation.

Examples​

tip

To understand how to use the below examples, please see Running Examples.

1. Load the current portal​

This action loads the current portal's name, administrator and email into [PortalName], [PortalAdminId] and [PortalEmail].

{
"Title": "Load Portal",
"ActionType": "LoadPortal",
"Description": "Load the current portal's details",
"Parameters": {
"PortalIdentifier": "",
"PortalName": "PortalName",
"AdministratorId": "PortalAdminId",
"Email": "PortalEmail"
}
}

2. Load a portal by ID​

This action loads the portal whose ID is in [SelectedPortalId], including its creation date and default language.

{
"Title": "Load Portal",
"ActionType": "LoadPortal",
"Description": "Load the selected portal",
"Condition": "[SelectedPortalId] != \"\"",
"Parameters": {
"PortalIdentifier": "[SelectedPortalId]",
"PortalName": "SelectedPortalName",
"CreatedOnDate": "SelectedPortalCreated",
"DefaultLanguage": "SelectedPortalLanguage"
}
}

Revised 09/27/2026