- Find the right Order or booking for the customer.
- Open its files and pick out the PDF.
- Repeat for every document the customer asks about.
Every invoice, credit note, donation receipt and training certificate for a customer, on the customer's own Account or Contact page.
Overview
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.
- Customer Service CentreFind and open a customer's documents while they are on the phone.Step by step
- Finance and Service Line administratorsThe same tab, with the same access, on the same pages.Who sees it
- Salesforce teamHow documents are registered, what to check, and what to do when something is missing.How it works
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 |
How a document gets there
Read left to right. Nobody files anything by hand: a document appears in the tab because the PDF was produced.
- My StJohn
- SFDocs in Salesforce
- Staff
What CSC gains
- One place per customerAll of a customer's documents sit together on their record. You no longer open each Order or booking to find its PDF.
- An answer during the callSearch by document number, name or attendee, or narrow by date, while the customer is still on the phone.
- The exact document they receivedThe tab opens the original PDF. Nothing is copied or regenerated.
- Certificate expiry at a glanceExpired certificates are labelled, ones expiring soon are flagged, and you can filter for those expiring within 3 or 6 months.
- Several documents in one goTick the rows you need and download them as one ZIP file, up to 200 at a time.
- Fewer hand-offsFind a copy of an invoice or a certificate yourself, straight from the customer's record.
- Safe by designYou can look but not change, and every view and download is recorded with who and when.
- Nothing new to log in toIt lives inside the Account and Contact pages you already use.
Before and after
- Open the customer's Account or Contact.
- Click Documents.
- Search or filter, then click View.
Find the tab
Open the customer's Account or Contact and click Documents. Pick Financial or Certificates. The newest documents are at the top.
- The Documents tab, beside Details, Orders and Services.
- Financial and Certificates. Each has its own list.
- The date filter and the search box.
- One row per document. The green order number opens the Order.
- View opens the PDF in a new browser tab.
- Tick boxes, for downloading several as one ZIP.
Narrow the list
Two tools sit above the list.
- Date. All dates, This FY, Last FY, This quarter, Last quarter, or Custom range with a From and To date.
- Search. Type a document number, a name or an attendee.
- Certificates only. A second filter: Any expiry, Expiring within 6 months, Expiring within 3 months, or Expired.
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 |
Open a document
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.
Download several at once
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.
- Up to 200 documents or 150 MB in one ZIP.
- The box in the header row ticks every row loaded so far.
- Clear removes the ticks.
| 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 |
Certificates and expiry
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. |
What to expect on day one
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.
- New documents appear within minutes. Usually seconds after the PDF is filed, and normally within 15 minutes.
- A certificate appears once its booking reaches Certificate Sent. Until then it is not listed.
- Business Central invoices are not included. Invoices whose file name starts with
OrderInvoice_are not picked up in this release. - You cannot send from the tab. Open or download the PDF, then attach it to your email the way you do today.
Who sees it
| 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.
Privacy and audit
- Every view and every download writes a record: the document, who opened it, when, and whether it was viewed or downloaded.
- The tab is read only. Documents cannot be edited, replaced or deleted from it.
- The tab links to the original file. No second copy of a customer's document is made.
- A ZIP you download is a copy on your computer. Delete it when you are finished with it.
Common questions
There is no Documents tab
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.
The list says "No documents found"
Clear the search and set the date filter to All dates. Remember the tab only holds documents filed since go-live.
A document I expect is missing
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.
View does nothing
Allow pop-ups for Salesforce in your browser, then click View again.
I see an error message in the tab
Note the customer, the time and the message, and send them to the Salesforce team.
I need more than 200 documents
Download them in batches, using the date filter to split them.
How it works
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.
The parts
| 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. |
Checks after go-live
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__cWhen CSC reports a problem
| 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. |
Known limits
- History is not loaded. Production holds about 1.31 million matching PDFs; loading them would take 5 to 10 hours of batch and then 11 to 22 days of queue, and is not safe to run as built.
- The audit write is best effort: if it fails, the failure goes to the debug log and the user still sees the document.
- The tab rule and the profile access must stay in step. A new profile that needs the tab needs both.
- The Production copy differs from the developer's package and from QA and Git in four places. They are listed 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.