Developer and API reference

Developer and API reference

This article is for external system integrators (SIs) and technical admins who have the 3B Onboarding (b3o) managed package installed in their own Salesforce org and want to automate it, extend it, or wire it into surrounding systems. It documents only the public integration surface a subscriber can actually see and call: the invocable actions available in Flow, the global Apex entry points, the remoting/callout contract used by the packaged front-end apps, the custom settings and kill switches, and the custom metadata types you configure.

Everything named here is callable or configurable from inside a subscriber org. Internal implementation classes, private queue processors and trigger helpers are deliberately not documented: treat anything not listed here as private and subject to change. Where a topic has its own deep-dive, this reference links to the relevant app article.

How the package fits together

3B Onboarding runs candidate credentialling, onboarding, compliance, interview booking and job tracking across Healthcare, Education, Blue-Collar and general staffing. Two ideas recur throughout the integration surface:

Invocable actions for Flow

These are the actions a subscriber can drop into Flow, Process Builder or call from Apex. All live in the 3B Onboarding category (except the magic-link action, which is under 3B Portals). Every action takes a collection of record Ids and returns without throwing (errors are logged internally), so they are safe to place at the end of a record-triggered flow.

Action label Category Input Output When to use
3B Recalculate Requested Documents 3B Onboarding Assignment Ids (list of b3o__Document_Assignment__c Ids, required) none Rebuild the requested-document rows for one or more document assignments after something that could change document visibility or completion (a submission, a contact field change, a certificate expiring).
3B Recalculate Compliance 3B Onboarding Record Ids (list of b3o__Compliance_Assignment__c, Contact or b3o__Compliance_Matrix__c Ids, required); optional Strict Synchronous none Rebuild compliance items (Compliance Command Center / v2). Accepts assignments directly, or contacts/matrices which resolve to their active assignments.
3B Compose Compliance Matrix 3B Onboarding Record Id (required), Matcher Definition (optional) Compliance Matrix Id, Created, Error Message Match and assign a composed Compliance Matrix to an engagement. See Compliance matrix composer.
3B Recalculate Compliance Assignments (Batch) 3B Onboarding Compliance Matrix Ids (blank = all), Assignment Created From / To (Date), Contact Rule (JSON), Batch Size (default 5) Batch job Id (String) Re-run the compliance engine for existing assignments after a matrix change, in a batch job. Faults on an invalid filter. Call once, not per record. See Recalculating compliance assignments.
3B Recalculate Candidates Compliance 3B Onboarding Contact Ids (list of Contact Ids, required) none Re-evaluate the legacy compliance-rule model (b3o__Compliance_Profile__c / b3o__Compliance_Group__c) for candidates, based on the compliance rule on the jobs they have applications for. Use only if you are still on legacy compliance rules.
Get Magic Link 3B Portals Contact Id (single Contact Id, required) Contact Id, Session Key (String) Generate a session key for a contact so you can build a portal / candidate-facing deep link in an email, SMS or notification. The key is valid for that contact only and expires.

Deprecated: an older PushService invocable exists but is labelled DEPRECATED and does nothing. Do not build against it.

Example: recompute compliance when evidence changes

A common pattern is a record-triggered flow on b3o__Document_Submission__c (or on b3o__Certificate__c, or on a Contact field that drives an applicability rule) that, after save, calls 3B Recalculate Compliance passing the related Contact Id in the Record Ids collection. Because the action accepts Contact Ids and resolves them to active assignments, you do not need to look up the assignment yourself. The same shape works for 3B Recalculate Requested Documents, except that action expects Document Assignment Ids specifically.

Because these actions are idempotent, it is fine if several flows fire them for the same record in one transaction, and fine to re-run them during testing or data loads. Requested-document recalculation queues a self-chaining job, falling back to inline processing if no queueable slot remains.

From Version 11.8.0, 3B Recalculate Compliance processes up to five resolved assignments inline by default. Configure the threshold with b3o__Onboarding_Default_Settings__c.b3o__Compliance_Sync_Recalc_Limit__c. Larger scopes, or catchable inline failures, normally fall back to queued work; if no queueable slot remains, processing runs inline within the transaction's remaining limits. The optional Strict Synchronous input always runs inline and propagates errors to the Flow. Use it only for a small scope and configure the Flow's fault handling. Governor-limit failures cannot be caught for an asynchronous retry.

For matching actions and scheduled reminder APIs, see Compliance match and Document reminders.

Recalculation engines and batches (Apex)

For SI-driven automation beyond Flow, the same engines are exposed as global Apex. Use the recalculate(Set<Id>) entry points from triggers or async code, and the batch classes for mass backfills.

Class Type Purpose
b3o.RequestedDocumentsHelper Global class recalculate(Set<Id> assignmentIds) rebuilds requested documents for the given document assignments. Also the invocable "3B Recalculate Requested Documents".
b3o.RequestedDocsRecalcBatch Global batchable Mass backfill of requested documents. Constructor takes an admin SOQL string returning b3o__Document_Assignment__c or Contact rows.
b3o.ComplianceMatrixHelper Global class recalculate(Set<Id> recordIds) rebuilds compliance items; accepts assignment, contact or matrix Ids. Also the invocable "3B Recalculate Compliance".
b3o.ComplianceMatrixRecalcBatch Global batchable Mass backfill of compliance items. Constructor takes an admin SOQL string returning b3o__Compliance_Assignment__c or Contact rows. Also the invocable "3B Recalculate Compliance Assignments (Batch)" (filtered mode).
b3o.ComplianceMatrixScheduler Global schedulable Daily sweep that flips items whose evidence expiry has entered the warning window, so b3o__Status__c becomes Expired on the real records (making picklists and roll-ups truthful for alerts and automation).
b3o.CandidateComplianceEvaluator Global class Legacy compliance-rule evaluation for candidates. Also the invocable "3B Recalculate Candidates Compliance".

Triggering a full recompute

Run these from Execute Anonymous (or a scheduled Apex job). Keep the batch scope small: each document or requirement that carries a rule costs SOQL proportional to the rule's conditions, so 5 to 10 records per batch is the safe range.

// Backfill requested documents for all active assignments
Database.executeBatch(new b3o.RequestedDocsRecalcBatch(
    'SELECT Id FROM b3o__Document_Assignment__c WHERE b3o__Active__c = true'), 5);

// Backfill compliance items for all active compliance assignments
Database.executeBatch(new b3o.ComplianceMatrixRecalcBatch(
    'SELECT Id FROM b3o__Compliance_Assignment__c WHERE b3o__Active__c = true'), 5);

// Schedule the daily expiry sweep (2am)
System.schedule('3B Compliance Daily Sweep', '0 0 2 * * ?',
    new b3o.ComplianceMatrixScheduler());

Both batch SOQL strings may return either the assignment object or Contact records; contacts are resolved to their assignments per batch. See Requested documents rollups and Compliance console for the object models these engines maintain.

The remoting contract

The packaged front-end apps (candidate documents, self-booking, compliance console, record files, chat and job board) share one request and response contract. An SI building a custom front end, a portal page or an external caller (for example an n8n workflow) can reuse it for the endpoints listed below.

Request

Send an HTTP POST with a JSON body to /services/apexrest/GlobalRemotingRouter/. The body names the controller and the endpoint, and carries every other request value inside params:

{
  "controllerName": "b3o.RemoteJobBoardController",
  "params": {
    "endp": "getSuitableJobs",
    "contactId": "<contact id>",
    "sessionKey": "<portal session key>",
    "minScore": 60
  }
}

Response

Every endpoint returns either a success response wrapping a data payload or an error response wrapping a message, so callers can branch on the success flag:

{ "success": true, "responseObject": [ { "jobId": "<job id>", "score": 87.5 } ] }

Access

Authenticated callers are subject to their own object, field and record access. Guest callers of session-enabled apps (candidate documents, sessions, compliance console, record files, chat and the AI form and chat components) must present a valid session key from Get Magic Link, and can act only for the contact that key identifies. Public apps (job board, assessment complete) run as guests without a key by design.

Supported endpoints

Controller (b3o. prefix) Purpose Endpoints (endp)
RemoteMyDocumentsController Candidate document pack experience getDocumentAssignments, getDocuments, getDocumentSubmissions
RemoteSelfBookController Interview / session self-booking getEvents, getOpenSessions, getDirectSessions, getOpenSchedules, getInvitations, getBookedSchedules, cancelInvitation, handleBook
RemoteComplianceConsoleController Compliance Command Center console getComplianceData, getEvidence
RemoteRecordFilesController Record-scoped file manager getSetup, getFiles
RemoteChatController Messaging / chat getMessages, sendMessage
RemoteJobBoardController Job board listing and suitable jobs getJobBoard, getJobs, getSuitableJobs

See the app articles for the exact behaviour of each controller, for example User documents, User sessions, Compliance console, Record files, Job board and Compliance match.

Custom settings and kill switches

b3o__Onboarding_Trigger_Control__c

An org-default custom setting of on/off switches. Use these during data migrations or bulk loads to suppress the automation that would otherwise fire row by row, then rebuild state afterwards with the matching recalculation batch. The count roll-up triggers are never bypassed by these switches.

Field Bypasses
b3o__Disable_Requested_Documents_Trigger__c Creation/sync of b3o__Requested_Document__c. After the load, run RequestedDocsRecalcBatch.
b3o__Disable_Compliance_Matrix_Trigger__c Creation/sync of b3o__Compliance_Item__c. After the load, run ComplianceMatrixRecalcBatch.
b3o__Disable_Certificate_Compliance_Trigger__c The certificate/certification evaluation trigger.
b3o__Disable_Cascade_Delete_Doc_Assignments__c Cascade delete of document submissions when document assignments are deleted.
b3o__Disable_Cascade_Delete_Cand_Scorecards__c Cascade delete of candidate scorecards.
b3o__Disable_App_Stage_Latest_Stage_Trigger__c Auto-assign of the last application stage when a stage is deleted.
b3o__Disable_Get_or_Create_App_Stage_Trigger__c Auto get/create of the first application stage on application insert/update.
b3o__Disable_Session_Invites_Roll_Up_Trigger__c The session-invitation roll-up trigger.

b3o__Onboarding_Default_Settings__c

Org-default configuration for URLs, licensing and applicant defaults. Key fields:

Field Type Purpose
b3o__Site_URL__c Text area The community/site URL the candidate-facing apps and job board are published on. Used to build links.
b3o__Visualforce_External_Site_URL__c Text External Visualforce site base URL for hosted pages.
b3o__Files_Endpoint__c URL Endpoint used for file byte transfer.
b3o__N8N_Endpoint__c URL Outbound automation/webhook endpoint (see the AI automation article).
b3o__Google_API_Key__c Text API key for location/geocoding features.
b3o__Default_Job_Board__c Text The job board shown by default.
b3o__Job_Board_Max_Search_Distance__c Number Maximum radius for location/postcode job search.
b3o__Customer_Logo__c Text Customer logo surfaced in the app chrome.
b3o__Theme__c Text Theme selection for the front-end apps.
b3o__Use_Community_Licenses__c Checkbox Provision new users against community licenses.
b3o__New_Applicant_Account__c Text Account Id new applicants are attached to.
b3o__New_Applicant_Record_Type__c Text Contact record type Id assigned to new registrants.
b3o__Complete_Previous_Application_Stage__c Checkbox Auto-complete previous in-progress application stages (leaves failed/on-hold alone).
b3o__Authorization_Named_Credential__c Text Named credential used for the authorization service.
b3o__Authorization_Session_Length__c Number Session length (minutes) for issued authorization sessions.
b3o__IV_Custom_Metadata__c Text DeveloperName of the identity-verification settings metadata record to use.

Do not store production secrets in these text fields where a named credential or protected custom metadata is the better home. Treat the API/token fields as configuration of last resort.

b3o__Search_and_Match_Settings__c

Controls the candidate/job search-and-match feature.

Field Type Purpose
b3o__Search_Contact_Record_Types__c Text area Comma-separated searchable Contact record types.
b3o__Search_Job_Record_Types__c Text area Comma-separated searchable Job record types.
b3o__Contacts_Extended_Filter__c Text area Extra SOQL-style filter applied to contact search.
b3o__Jobs_Extended_Filter__c Text area Extra SOQL-style filter applied to job search.

Custom metadata types

These are the metadata types an SI configures to drive packaged behaviour. Each is edited under Setup > Custom Metadata Types.

Metadata type What it configures See
b3o__Compliance_Definition__mdt The JSON definition used by the compliance console: evidence catalog, console columns, behaviour flags, candidate and client modes, audience classification, and label overrides. The native wrapper currently uses Default; use a direct Visualforce placement when a matrix-specific definition is required. Compliance console
b3o__Record_Files_Definition__mdt The server-interpreted config for the record file manager: sources, columns, upload form fields, sharing/filter and permissions. Keyed by DeveloperName with a Default fallback. Record files
b3o__Filter_Condition__mdt Reusable filter condition definitions consumed by list/search features. Native components reference
b3o__Search_and_Match_Condition__mdt Named conditions used by the search-and-match feature alongside b3o__Search_and_Match_Settings__c. This article
b3o__Identity_Verification_Yoti_Settings__mdt Identity-verification provider settings (SDK id, keys, requested checks/tasks, capture methods, callback URLs, branding). Selected via b3o__IV_Custom_Metadata__c. This article
b3p__Portal_Block Portal building block used to embed a packaged app into a 3B Portals page (My Documents, Sessions, Job Board, Chat, Record Files, and the AI components each have a block). Native components reference

b3o__Portal_Block__mdt and the b3o__Scheduling_*__mdt family (Scheduling_Context_Provider, Scheduling_Filter, Scheduling_Loader, Scheduling_Special_Date) are labelled DEPRECATED. New portal embeds use the b3p__Portal_Block records above; do not configure the deprecated types for new work.

Third-party integrations

Identity verification (Yoti)

The package can drive an external identity-verification session and receive the result asynchronously. You configure a b3o__Identity_Verification_Yoti_Settings__mdt record (client SDK id, private key, requested checks and tasks, allowed capture methods, locale, preset issuing country, branding colours and the various callback URLs) and point b3o__Onboarding_Default_Settings__c.b3o__IV_Custom_Metadata__c at its DeveloperName. When the verification provider finishes, it calls back into the packaged REST endpoint (b3o.IV_Yoti_Client, mapped under /services/apexrest/b3o/IV_Yoti_Client/v1/results), which records the outcome against the candidate. SIs integrate by configuring the metadata and exposing the callback endpoint through the site; the credential flow itself is handled by the package.

Outbound automation (n8n)

The b3o__N8N_Endpoint__c setting points the package at an external automation / webhook workflow engine for AI and integration scenarios. See n8n AI automation and integration for how the onboarding events flow outbound and what the AI form and chat components consume.

Job board aggregators (BroadBean, LogicMelon) (deprecated)

Historic global classes b3o.BroadBeanIntegration and b3o.LogicMelonIntegration existed to pull job postings and applications from external aggregators into Salesforce jobs. They are deprecated and are now no-ops (the methods return without doing work). Do not build new integrations against them; use the standard job objects and the current job board directly.