Document pack composer

Document pack composer

The packaged 3B Application and Placement record pages include a Document Pack tab with the composer. For custom record pages, add Document Pack Composer using Lightning App Builder. It shows the candidate context, the matching document packs, and the documents that will be copied. Create Document Pack & Assignment creates a new pack, assigns it to the candidate, and fills the record's Document Pack lookup.

Configure source packs

On Document Pack, use the Dynamic matching section to set Account, Site, Site State, Contact State, Job, or Job Type. Enabled packs qualify when every populated matching field equals the corresponding context value. Blank fields act as wildcards. A pack with all six fields blank never matches. Disabled packs never match.

The default definitions use the Application or Placement's Job to resolve Client Account, Site, Job Type, and Site State. Contact State compares with the candidate's Mailing State. The state fields use the shared States picklist; the candidate's Mailing State must contain the same value.

Creation behavior

Source packs are ordered by name, then record ID. Documents within each pack follow their Order, then name and record ID. All source document rows are copied and assigned consecutive Order values. Separate source rows referencing the same form or document remain separate requests. Their content references, conditional rendering rules, approval options, labels, and other stored settings are preserved.

The new pack uses the first matching pack's Public Description and Submit in Order setting. Its name combines the candidate, job, and site names, truncated to 80 characters. Matching fields remain blank so generated packs do not become source packs themselves.

The assignment links to the candidate and the originating 3B Application or Placement. Existing assignment automation calculates requested documents. Preview counts show all configured documents; conditional rendering rules determine which documents the candidate must actually complete.

Creation rechecks current matches. Repeated creation requests on the same record reuse its Document Pack lookup. An already populated lookup is displayed and prevents creation, including when it was set manually. Existing linked packs are not rebuilt when source packs or context values change. Application and Placement records each have their own generated pack. Creation is atomic: a failure leaves no partially created pack or assignment.

Matcher definitions and access

From Version 11.8.0, the Application and Placement Document Pack Matcher Definition records are supplied as separate setup metadata, available from 3B support. The managed package does not install them. Review existing definitions and deploy or recreate missing records before using the composer. Leave the component's Matcher Definition property blank to select by object, or enter a definition's DeveloperName. This configuration is independent of Dynamic Compliance.

Each JSON definition declares objectApiName, contactPath, namePaths, packPath, and matchers with sourceFieldPath and targetFieldPath. Supported context objects are b3o__Application__c and b3o__Placement__c; packPath must be b3o__Document_Pack__c.

The Onboarding Admin Full Permission permission set includes the new fields and controller. Users need read access to the context and matching data, create access to Document Packs, Documents and Document Assignments, and update access to the originating record's Document Pack lookup. Reads and writes enforce user permissions and record sharing; insufficient access produces an error.