Document reminders

Document reminders

The document reminder engine runs on a schedule and flags every Document Assignment that still has documents needing candidate action. It does not send anything. It stamps three fields on the assignment, and your org decides how to reach the candidate: a record-triggered flow that emails, an Apex handler that calls an SMS provider, or any other automation that watches those fields.

What gets stamped

Document Assignment field Meaning
b3o__Last_Reminder_Date__c Date the engine last flagged the assignment. Build your automation on a change to this field.
b3o__Reminder_Count__c Running count of reminders flagged for this assignment. Useful for escalation ("third reminder goes to the recruiter").
b3o__Portal_Session_Key__c URL-encoded 3B Portals session key for the contact, refreshed on each reminder when Generate Session Key is on. Append it to your portal URL as ?sessionKey=... to give the candidate a magic link.

All three sit in the Reminders section of the Document Assignment layout.

When an assignment is flagged

An assignment is flagged on a run when all of the following are true:

The outstanding check reads the packaged Requested Documents (b3o__Requested_Document__c), so it is always in step with what the candidate sees in My Documents.

Configuration

Precedence is Document Pack field first, then the global default.

Global defaults

In Setup, open Custom Metadata Types > Document Reminder Settings > Manage Records and create or review the Default record. Version 11.8.0 supplies this record as separate setup metadata, available from 3B support. The managed package does not install it. Without it, the reminder engine is disabled. The values below match the supplied record.

Field Default Meaning
Enabled true Master switch. When off the scheduled job selects nothing.
Duration (Days) 14 Days after assignment creation during which reminders are flagged
Frequency (Days) 2 Minimum days between reminders for one assignment
Batch Size 200 Assignments per batch execution (max 200)
Generate Session Key true Refresh Portal Session Key on every reminder

Per Document Pack

The Reminders Settings section on the Document Pack layout:

Field Meaning
Reminder Duration (Days) Overrides the global duration for assignments of this pack. Blank = global.
Reminder Frequency (Days) Overrides the global frequency. Blank = global.
Reminders Disabled Stops reminders for every assignment of this pack

To silence one candidate, tick Hide from Candidate on their assignment or set a past due date.

Running the engine

Open the Document Reminders tab (granted by the Onboarding Admin permission set; the component also can be added to an app, home or record page). Users need create and edit access on Document Assignment. It shows:

The same actions are available from Execute Anonymous:

b3o.DocumentReminderBatch.schedule('0 0 8 * * ?'); // one job per org, replaces any existing
b3o.DocumentReminderBatch.abort();
b3o.DocumentReminderBatch.runNow();               // one immediate batch run

The scheduled job is named 3B Document Reminders and is visible under Setup > Scheduled Jobs.

Wiring the reminder

Example record-triggered flow on Document Assignment: run when Last Reminder Date is changed and is not blank, then send an email alert to the contact merging {!$Record.b3o__Portal_Session_Key__c} into the portal link and {!$Record.b3o__Outstanding_Documents__c} into the body. Use b3o__Reminder_Count__c in a decision element to escalate after N reminders.

Session keys from your own Apex

b3o.PortalAuthentication is global, so custom Apex can mint and validate portal session keys directly:

String key = b3o.PortalAuthentication.createSessionKey(contactId);      // raw key
String url = portalUrl + '?sessionKey=' + EncodingUtil.urlEncode(key, 'UTF-8');
String contactId = b3o.PortalAuthentication.getUserIdFromSession(key);   // null when invalid
Contact c = b3o.PortalAuthentication.getUserFromSessionKey(key);         // throws AuthException when invalid or disabled

Key validity comes from the Portals setting Portal Magic Link Validity (default 14 days).

Limits