Object model and data dictionary

Object model and data dictionary

All objects use the b3p namespace at runtime (for example b3p__Page__c). Field names below are shown without the prefix. Most lookup relationships use SetNull on delete. Portal_Notification__c is a master detail child of Contact, while the Contact lookups on Portal_Passkey__c and Passkey_Challenge__c restrict deletion of a referenced Contact.

Entity map

Web_Portal__c

The portal container. Label Web Portal, name field Portal Name.

Field Type Target / values Used by
Home_Page__c Lookup Page__c Runtime resolves this when a portal name is requested.
Page_404__c Lookup Page__c Runtime renders this for unknown routes.
Emulated_Contact__c Lookup Contact Builder Preview sets this Contact as the running user.
Branding_Resource_Name__c Text(255) default b3p__Branding PWA manifest and icons.
PWA_Short_Name__c Text(255) default 3B PWA manifest.
PWA_Description__c Text(255) PWA manifest.
PWA_Start_URL__c Text(255) default /b3p__Portal#Index PWA manifest.
PWA_Theme_Color__c Text(255) default #00ca72 PWA manifest and meta.
PWA_BG_Color__c Text(255) default #ffffff PWA splash and background.
PWA_Status_Bar_Type__c Text(255) default black-translucent iOS meta.
PWA_Viewport__c Text(255) default responsive viewport Viewport meta.
Enable_Installation_Prompts__c Checkbox default false Enables first-visit installation guidance. See App installation prompts.
Disable_Self_Registration__c Checkbox default false Hides registration and rejects self-registration requests for this portal. Existing Contacts can still sign in.
Caching_Strategy__c Picklist NetworkOnly (default), NetworkFirst, StaleWhileRevalidate, CacheFirst, CacheOnly Offline worker strategy for the portal page, static resources and data calls. NetworkOnly means offline support is off.
Cache_Max_Age_Minutes__c Number default 120 How long a cached page, asset or data response stays fresh, and the on device page template cache window. Applies to the template cache under every strategy.

The two caching fields sit in an Offline and Caching layout section. See Offline support and caching.

Page__c

A single page. Label Page, name field Page Name. Has a Builder web link that opens /apex/PortalBuilder?id=<pageId>.

Field Type Target / values Used by
Web_Portal__c Lookup Web_Portal__c Assigns the page to a portal. Child relationship Pages.
Title__c Text(255) Document title on render.
Guest_User_Accessible__c Checkbox default false Runtime gates guest access per page.
Disable_Caching__c Checkbox default false Runtime cache bypass.
Suppress_Push_Prompt__c Checkbox default false Suppresses the push permission prompt on this page.
Sub_Template__c Checkbox default false Marks the page as a reusable fragment.

Page template content is not stored in fields. It is stored as two Salesforce Files (ContentVersions) linked to the Page record: Template.b3p (the editable 3B Portals model) and Template_html.b3p (the compiled html, css, js). Both are gzip plus base64 compressed. See Publishing pages.

Page triggers

From 12.0.0, creating a Page increments the package page counter once. There is no decrement on delete.

Portal__c (hierarchy custom setting)

Org, profile, and user level configuration. Not a transactional object. See Configuration reference for the full field list and defaults.

Portal_Secret__c (protected custom setting)

From 12.5, stores the per-org signing key used for signed sessions and magic links. The package generates it on first use. Subscriber administrators, external code and the API do not have direct access. Enable Secure Session Keys to use signed tokens. See Magic links and session keys.

Push_Message__c

Records a sent push notification. Name field Title.

Field Type Target / values Used by
Contact__c Lookup Contact Recipient.
Push_Registration__c Lookup Web_Event__c The device registration used.
Body__c TextArea Message body.
Target__c URL Click through URL.
Status__c Picklist Success, NotRegistered (also Sent, Received, Clicked set by code) Delivery and engagement state.
Status_Details__c TextArea Error details.
Message_Id__c Text(255) external id FCM message id.
UUID__c Text(255) external id Client visible unique id, used to upsert status.

Written by PushService_Base on send and upserted by Portal.upadtePushStatus on receive and click.

Web_Event__c

Activity log and push device registry. Name field is an auto number WEB-EVENT-{0}.

Field Type Values Used by
Contact__c Lookup Contact The associated portal user.
Type__c Picklist Push Registration, Login, Registration, Access Code Request, Success Validating Access Code, Invalid Access Code Entered, Logout, Log, Passkey Registered, Passkey Login, Passkey Revoked Event category.
Browser__c Text(255) Captured at push registration.
Timezone__c Text(255) Captured at push registration.
FCM_Token__c TextArea Firebase device token. Push send queries the latest tokens here.
Source_URL__c Text(255) Trusted source page captured for Registration and Access Code Request events.
Details__c LongTextArea(32768) Log payload.
Latest_Error__c Text(255) Last send error.

A push registration is a Web_Event__c of type Push Registration carrying the FCM token. There is no separate device object.

Portal_Task__c

Tasks and events shown by the Activity & Task Manager component. Name field Subject.

Field Type Purpose
Contact__c Lookup Contact (required) The portal user, child relationship Portal_Tasks
Type__c Picklist Task, Event
Status__c Picklist Open, In Progress, Completed, Cancelled
Priority__c Picklist Low, Normal, High
Due_Date__c, Start__c, End__c, Completed_On__c DateTime
Description__c LongTextArea
Category__c Text(80)
Related_Record_Id__c Text(18) Optional link to any record
Source__c Picklist Portal, Salesforce, Automation Provenance
Portal_Created__c Checkbox Created by the portal user

Read and written by the activity component, always scoped to the session contact.

Portal_Notification__c

Notifications shown by the Notifications Centre component. Name field Title. Master detail to Contact (child relationship Portal_Notifications), so notifications are deleted with the contact and inherit its sharing.

Field Type Purpose
Contact__c Master detail Contact Recipient
Body__c LongTextArea Message
Type__c Picklist Info, Success, Warning, Error Icon and colour
Category__c Text(80) Filtering
Icon__c Text(80) Icon class override
Target_URL__c URL Click destination
Priority__c Picklist Low, Normal, High
Viewed__c, Viewed_On__c, Dismissed__c Checkbox / DateTime Maintained by the component
Expires_On__c DateTime Hidden after
Related_Record_Id__c Text(18)

Written by PortalNotificationPublisher (flow action), PortalNotificationService.publish and the component.

Knowledge_Category__c and Knowledge_Article__c

Content of the Knowledge / Help Centre component.

Knowledge Category: Slug__c (external id, unique), Description__c, Icon__c, Order__c, Active__c, Parent_Category__c (self lookup, child relationship Sub_Categories).

Knowledge Article: Category__c (lookup, child relationship Articles), Slug__c (external id, unique), Summary__c, Body__c (rich text), Featured__c, Published__c, Published_Date__c, Order__c, Tags__c, View_Count__c, Helpful_Count__c, Guest_Accessible__c, Author_Name__c. Read by the knowledge centre component, which only returns published articles and hides non guest accessible articles from visitors without a session.

ContentVersion: component_config.json

The standard components store their configuration in a component_config.json file linked to the Page record, next to Template.b3p and Template_html.b3p. See Standard components: configuration model.

Log_Entry__c

General log. Name field auto number LOG-POR-{0}. Fields Type__c (Text) and Description__c (LongTextArea). Written by ErrorHandling.

Portal_Block__mdt (custom metadata)

Defines the palette of blocks available in the builder. Each record is a draggable component. See Custom components.

Field Type Purpose
Category__c Picklist Interactions, Onboarding, Compliance, Data, UI, UX.
Web_Component_Tag__c Text(255) Custom element tag the block renders.
HTML__c LongTextArea Raw markup for an HTML only block.
JS_Resource__c Text(255) Static resource name holding the component index.js.
Traits_JSON__c LongTextArea 3B Portals trait config for the properties panel.
Class__c Text(255) CSS class.
Description__c TextArea AI description used by the AI builder.
Order__c Number(2,0) Palette order.
Draggable__c, Droppable__c, Editable__c, Highlightable__c, Removable__c, Stylable__c Checkbox 3B Portals component flags.
Load_Immediately__c Checkbox Load the resource under priority (libraries, shared code).
Is_Deprecated__c Checkbox Hidden from the palette when checked.

Read by the builder palette and the portal runtime.

Google_Service_Auth__mdt (custom metadata)

Holds the Google service account credentials used for FCM push. The record named Push is read by the push service. Fields: Client_Email__c, Private_Key__c, Project__c, Endpoint__c, Token_URI__c, Scopes__c. Enter your own Firebase project's service account details before go live. See Installation and setup.

Contact (standard object, custom fields)

The portal user. Custom fields:

Field Type Purpose
Disabled_Portal_User__c Checkbox Blocks all portal logins for this contact.
Temporary_Password__c Text(255) Single use access code for passwordless login and registration.
Incorrect_Code_Attempts__c Number(9,0), default 0 Consecutive failed verification-code submissions; reset by successful verification.
Last_Login_Attempt__c DateTime Latest code submission for a known Contact.
Last_Login_Status__c Text(80) Successful, Incorrect code or Locked out.
Verification_Email_Hash__c Text(64) Internal duplicate-delivery marker for the last code prepared by the packaged email Flow.
Sessions_Revoked_At__c DateTime Logout timestamp. Signed session keys issued at or before this time are rejected on all devices. Legacy tokens are unaffected.
Password__c Text(255) DEPRECATED.

From 12.0.0, the configured failure threshold sets Disabled Portal User and clears the outstanding code. See Verification emails and code lockout for support access and recovery.

Portal_Verification_Email__e

The packaged verification-email platform event publishes after commit and starts the Portal verification email Flow. Its fields are Contact_Id__c, Request_User_Id__c, Code_Hash__c and Source_URL__c (LongTextArea, 1000 characters). It carries Contact and requesting-user references, a code hash and the trusted source page, not the verification code itself. Guests need no direct object or subscription access. See Verification emails and code lockout.

ContentVersion (standard object, custom field)

Revision_Reason__c (Text(255)). Used alongside the file based template storage.

Login_Code__c

Stores single-use terminal sign-in codes as hashes. Fields are Code_Hash__c (unique, case-sensitive Text(64) external ID), Contact__c (required Contact lookup), Expires_At__c (required DateTime) and Used_At__c (DateTime). Guest object access is not required. See One-time terminal sign-in codes.

Passkey objects (11.2.0)

Portal_Passkey__c (Portal Passkey) and Passkey_Challenge__c (Passkey Challenge) both use private internal and external sharing. They are managed through the portal authentication entry point and require no direct guest object access. Neither object is added to the packaged permission sets in this release. See Passkey login.

Portal_Passkey__c

Field Type Purpose
Contact__c Lookup Contact, restrict delete Credential owner; child relationship Portal_Passkeys.
Origin__c Text(255) Exact configured HTTPS origin.
Credential_Id__c LongTextArea(32768) Browser credential identifier.
Credential_Hash__c Text(64), unique, case-sensitive external ID Credential lookup hash.
Public_Key__c Text(255) Public verification key; no private key or biometrics are stored.
User_Handle__c Text(43) Opaque account handle used for this Contact and origin.
Counter__c Number(18,0) Signature counter.
Backup_Eligible__c Checkbox, default false Authenticator backup eligibility.
Last_Used__c DateTime Last successful passkey login.
Revoked__c Checkbox, default false Prevents future use of the credential.

The name is an auto number, PK-{0000000000}.

Passkey_Challenge__c

Field Type Purpose
Contact__c Lookup Contact, restrict delete Contact for enrolment and registration; child relationship Passkey_Challenges. Login challenges start without a Contact.
Token_Hash__c Text(64), unique, case-sensitive external ID Hash of the challenge token.
Purpose__c Text(20) enrol, register or login.
Origin__c Text(255) Exact configured HTTPS origin.
User_Handle__c Text(43) Account handle for registration.
Expires_At__c DateTime Five-minute expiry.
Used_At__c DateTime Records successful consumption; prevents reuse.

The name is an auto number, PC-{0000000000}. Requests opportunistically delete up to 100 challenges that expired more than a day ago. Expired challenges remain unusable until removed.