One place per customer
Invoices, credit notes and donation receipts for the customer in one list, newest first, with certificates one tab over. No more opening each Order or booking to find its PDF.
Every invoice, credit note, donation receipt and training certificate for a customer, on the customer's own Account or Contact page.
SFDocs adds a Documents tab to the Account and Contact pages. It lists the PDFs St John has already produced for that customer: invoices, credit notes, donation receipts and training certificates. One click opens the PDF.
The tab is read only. Nothing in it can be changed, re-issued or deleted. Every view and download is recorded.
| Sub-tab | What it lists |
|---|---|
| Financial | Invoices, credit notes and donation receipts |
| Certificates, on an Account | Training certificates for bookings on that account |
| Recipient Certificates, on a Contact | Training certificates issued to that person |
Read left to right. Nobody files anything by hand: a document appears in the tab because the PDF was produced.
Five things change for the Customer Service Centre. Each picture is drawn from the tab itself, with the test customer and example rows.
Invoices, credit notes and donation receipts for the customer in one list, newest first, with certificates one tab over. No more opening each Order or booking to find its PDF.
Type a document number, a name or an attendee and the list narrows as you type. Open the PDF while the customer is still on the line.
Expired certificates are labelled and ones expiring soon are flagged. Filter for those expiring within 3 or 6 months before the customer asks.
Tick the rows you need and download them together as one ZIP file, up to 200 at a time. A year of invoices takes one click.
The tab is read only. Each view and download is logged with who and when, so the Salesforce team can always check who opened what.
Open the customer's Account or Contact and click Documents. Pick Financial or Certificates. The newest documents are at the top.
Two tools sit above the list.
If nothing matches you see "No documents found. Adjust the filters or search."
| Type | Number | Order | Issued | Status | Actions | |
|---|---|---|---|---|---|---|
| Invoice | 35241817 | 01723616 | 08/09/2026 | Active | View |
Click View on the row. The PDF opens in a new browser tab, where you can read it, print it or save it with the browser's own buttons.
If nothing opens, your browser may have blocked the new tab. Allow pop-ups for Salesforce and click View again.
Tick the rows you need. A bar appears showing how many are selected. Click Download as ZIP and one file called documents.zip is saved, holding every PDF you ticked.
| Type | Number | Order | Issued | Actions | |
|---|---|---|---|---|---|
| Invoice | 35241817 | 01723616 | 08/09/2026 | View | |
| Invoice | 35241818 | 01723617 | 08/09/2026 | View | |
| Donation Receipt | 35110575 | 01723210 | 17/07/2026 | View |
The Certificates list shows the course, the attendee, the order, the issue date and the expiry date. It shows 20 rows at a time; Load more brings the next 20.
Mockup with example rows| Course | Attendee | Order | Issued | Expiry | Status | Service Owner | Actions | |
|---|---|---|---|---|---|---|---|---|
| First Aid Level 1 | Test Automation | 01723650 | 12/03/2026 | 12/03/2028 | Active | Test Automation | View | |
| First Aid Revalidation | Example Attendee | 01719004 | 20/01/2025 | 20/01/2027⚠ | Active | Example AttendeeL | View | |
| Workplace First Aid | Test Automation | 01698211 | 05/11/2023 | 05/11/2025Expired | Active | Test Automation | View |
| What you see | What it means |
|---|---|
| Expired | The certificate is past its expiry date. |
| ⚠ | The certificate expires soon. |
| Attendee name in blue | Opens the booking. |
| Service Owner L | Who the certificate belongs to. An L marks a recipient who is still a Lead. |
The tab starts empty. It lists documents filed after go-live. Older documents are not loaded yet; they stay where they are today, on the Order or the booking.
OrderInvoice_ are not picked up in this release.| Who | Documents tab | Notes |
|---|---|---|
| St John General User profile | Shown | 117 people in Production: CSC 37, Service Line Administrator 32, Finance Administrator 28, and 20 others. No permission set is needed. |
| System Administrator, St John System Administrator | Shown | No extra access needed. |
| Every other profile | Hidden | Telecare, Telecare Field, Identity User, Sales and the read-only administrator profile do not see the tab. |
Everyone who sees the tab can open any customer's documents. Open only what you need for the customer you are helping.
The tab shows for the St John General User profile and for administrators. If you are on another profile and need it, ask the Salesforce team.
Clear the search and set the date filter to All dates. Remember the tab only holds documents filed since go-live.
Wait 15 minutes and refresh. If it was filed before go-live, look on the Order or the booking as you do today. If it is still missing, send the order or booking number to the Salesforce team.
Allow pop-ups for Salesforce in your browser, then click View again.
Note the customer, the time and the message, and send them to the Salesforce team.
Download them in batches, using the date filter to split them.
SFDocs is the Customer Documents Portal, v1.21 + S-7. This release ships the internal tab only: no customer site, no help and no history load. The deployment steps are in the SFDocs Production Runbook.
| Part | What it is |
|---|---|
Document__c | The register. One row per customer document, pointing at the file. Private sharing, field history on. |
DocumentStaging__c | The queue. One row per PDF waiting to be registered, with attempt count and failure note. |
DocumentAccessLog__c | The audit. One row each time someone views or downloads. |
ContentDocumentLinkTrigger | Runs when a file is linked to a record. Acts only on PDFs linked to an Order or a booking. |
DocumentStagingProcessor DocumentGenerator | The background job and the code that builds the document row. |
DocumentAdminService | Serves the tab: search by Account, Contact or Order; open; download; write the audit row. |
docsAccountDocuments | The tab itself, with docsListColumns and docsEmpty. |
| Access | Four entries on the St John General User profile. Documents_Admin for named admins who need the queue and the log. Documents_Support ships unassigned. |
| Jobs | Docs Staging Sweep at :00, :15, :30, :45 and Docs Reconciliation Nightly at 02:00. |
Read-only queries. Reading the queue and the log needs Documents_Admin.
SELECT ProcessingStatus__c, COUNT(Id) FROM DocumentStaging__c WHERE CreatedDate = TODAY GROUP BY ProcessingStatus__cPending should drain to zero. Failed should stay at zero.
SELECT Id, LinkedEntityId__c, AttemptCount__c, ErrorDetail__c FROM DocumentStaging__c WHERE ProcessingStatus__c = 'Failed' ORDER BY CreatedDate DESC LIMIT 50SELECT DocumentType__c, COUNT(Id) FROM Document__c WHERE CreatedDate = TODAY GROUP BY DocumentType__cProduction files about 1,470 matching PDFs a day.
SELECT AccessedBy__r.Name, AccessType__c, COUNT(Id) FROM DocumentAccessLog__c WHERE CreatedDate = LAST_N_DAYS:7 GROUP BY AccessedBy__r.Name, AccessType__c| Report | First check | Likely cause |
|---|---|---|
| No tab | The user's profile | Not on one of the three profiles in the tab's rule. |
| Document missing | The queue row for that file | Filed before go-live; still Pending; skipped with a note; or an OrderInvoice_ file. |
| Certificate missing | The booking's status and role | Not at Certificate Sent, or not the Primary Attendee. If the PDF was filed before the status changed, the certificate is skipped and does not come back by itself. |
| Files fail to attach anywhere | Errors naming ContentDocumentLinkTrigger | Treat as urgent. See Rollback in the runbook. |
Not yet confirmed in a browser in UAT: the tab rule, and list, View and ZIP for a user on the profile without a permission set. Access itself is proven by query.