Hato Hone St John customer documents

SFDocs User Guide

Every invoice, credit note, donation receipt and training certificate for a customer, on the customer's own Account or Contact page.

  • Version v1.21 + S-7
  • Available in UAT, not yet in Production
  • Updated 01-Dec-26
Contents
  1. Overview
  2. How a document gets there
  3. What CSC gains
  4. Find the tab
  5. Narrow the list
  6. Open a document
  7. Download several
  8. Certificates and expiry
  9. Day one
  10. Who sees it
  11. Privacy and audit
  12. Common questions
  13. How it works
  14. Checks after go-live
  15. When CSC reports a problem
  16. Known limits

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-tabWhat it lists
FinancialInvoices, credit notes and donation receipts
Certificates, on an AccountTraining certificates for bookings on that account
Recipient Certificates, on a ContactTraining 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.

How a PDF reaches the Documents tab PDF is producedRegisteredKept as a rowOpened My StJohn SFDocsin Salesforce Staff Files the PDF on theOrder or the booking Notices the new PDFand queues it Registers it,usually within seconds One row per document,linked to the file Tab lists the rowsand records each view Opens the customer,clicks Documents
  • My StJohn
  • SFDocs in Salesforce
  • Staff
The file itself is never copied. The row points at the PDF that was sent to the customer.

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

Today
  1. Find the right Order or booking for the customer.
  2. Open its files and pick out the PDF.
  3. Repeat for every document the customer asks about.
With the Documents tab
  1. Open the customer's Account or Contact.
  2. Click Documents.
  3. Search or filter, then click View.
Step 1

Find the tab

Open the customer's Account or Contact and click Documents. Pick Financial or Certificates. The newest documents are at the top.

Screenshot from UAT, 27-Nov-26, test customer
An Account record page in UAT with the Documents tab open. The Financial sub-tab lists invoices and a donation receipt, each with a View button.
  1. The Documents tab, beside Details, Orders and Services.
  2. Financial and Certificates. Each has its own list.
  3. The date filter and the search box.
  4. One row per document. The green order number opens the Order.
  5. View opens the PDF in a new browser tab.
  6. Tick boxes, for downloading several as one ZIP.
The Documents tab on an Account. Dates appear in your own date format.
Screenshot from UAT, 27-Nov-26, test customer
A Contact record page in UAT with the Documents tab open, showing the Financial and Recipient Certificates sub-tabs.
The same tab on a Contact. Financial covers every account this person is actively linked to. Recipient Certificates lists certificates issued to this person.
Step 2

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."

Mockup, drawn from the tab's code
AccountTest Automation Household (5812100)
DetailsOpportunitiesOrdersServicesDocumentsMore
Documents
FinancialCertificates
This FY35241817
All datesThis FYLast FYThis quarterLast quarterCustom range
TypeNumberOrderIssuedStatusActions
Invoice352418170172361608/09/2026ActiveView
Step 3

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.

Mockup
Test Automation Household | SalesforceInvoice_35241817_Combined_4476161.pdf
Tax invoice35241817
Total
Step 4

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.
Mockup, drawn from the tab's code
AccountTest Automation Household (5812100)
DetailsOpportunitiesOrdersServicesDocumentsMore
Documents
FinancialCertificates
2 document(s) selectedDownload 2 as ZIPClear
TypeNumberOrderIssuedActions
Invoice352418170172361608/09/2026View
Invoice352418180172361708/09/2026View
Donation Receipt351105750172321017/07/2026View
Step 5

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
AccountTest Automation Household (5812100)
DetailsOpportunitiesOrdersServicesDocumentsMore
Documents
FinancialCertificates
All datesAny expirySearch number, name, or attendee
CourseAttendeeOrderIssuedExpiryStatusService OwnerActions
First Aid Level 1Test Automation0172365012/03/202612/03/2028ActiveTest AutomationView
First Aid RevalidationExample Attendee0171900420/01/202520/01/2027⚠ActiveExample AttendeeLView
Workplace First AidTest Automation0169821105/11/202305/11/2025ExpiredActiveTest AutomationView
Load more
What you seeWhat it means
ExpiredThe certificate is past its expiry date.
⚠The certificate expires soon.
Attendee name in blueOpens the booking.
Service Owner LWho 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

WhoDocuments tabNotes
St John General User profileShown117 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 AdministratorShownNo extra access needed.
Every other profileHiddenTelecare, 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 a document passes through PDF is filedon an Orderor a booking File triggerContentDocumentLinkTrigger Queue rowDocumentStaging__cPending Background jobone document a job,up to 3 attempts Document rowDocument__clinked, not copied Documents tabdocsAccountDocumentslogs each view
A sweep every 15 minutes picks up anything a job missed. A nightly check reviews the last 7 days and writes to the debug log only.

The parts

PartWhat it is
Document__cThe register. One row per customer document, pointing at the file. Private sharing, field history on.
DocumentStaging__cThe queue. One row per PDF waiting to be registered, with attempt count and failure note.
DocumentAccessLog__cThe audit. One row each time someone views or downloads.
ContentDocumentLinkTriggerRuns when a file is linked to a record. Acts only on PDFs linked to an Order or a booking.
DocumentStagingProcessor DocumentGeneratorThe background job and the code that builds the document row.
DocumentAdminServiceServes the tab: search by Account, Contact or Order; open; download; write the audit row.
docsAccountDocumentsThe tab itself, with docsListColumns and docsEmpty.
AccessFour entries on the St John General User profile. Documents_Admin for named admins who need the queue and the log. Documents_Support ships unassigned.
JobsDocs 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.

Queue health today
SELECT ProcessingStatus__c, COUNT(Id) FROM DocumentStaging__c WHERE CreatedDate = TODAY GROUP BY ProcessingStatus__c

Pending should drain to zero. Failed should stay at zero.

Why a document failed
SELECT Id, LinkedEntityId__c, AttemptCount__c, ErrorDetail__c FROM DocumentStaging__c WHERE ProcessingStatus__c = 'Failed' ORDER BY CreatedDate DESC LIMIT 50
Documents registered today, by type
SELECT DocumentType__c, COUNT(Id) FROM Document__c WHERE CreatedDate = TODAY GROUP BY DocumentType__c

Production files about 1,470 matching PDFs a day.

Who opened what, last 7 days
SELECT AccessedBy__r.Name, AccessType__c, COUNT(Id) FROM DocumentAccessLog__c WHERE CreatedDate = LAST_N_DAYS:7 GROUP BY AccessedBy__r.Name, AccessType__c

When CSC reports a problem

ReportFirst checkLikely cause
No tabThe user's profileNot on one of the three profiles in the tab's rule.
Document missingThe queue row for that fileFiled before go-live; still Pending; skipped with a note; or an OrderInvoice_ file.
Certificate missingThe booking's status and roleNot 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 anywhereErrors naming ContentDocumentLinkTriggerTreat 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.