Guide Fixing errors
Certinia companies not showing: how user company access works
Short answer: In Certinia a user is given access to a company through a User Company record,
c2g__codaUserCompany__c, between the Salesforce user and a company, so a user works in the companies they have been linked to. A user with no such record sees no companies, and an integration acting as that user sees none either. A message that the org "isn't set up for Certinia" means the objects or the permission to them are missing altogether.
What links a user to a company
Certinia keeps its books company by company. Access is granted per company through a User Company record: one row for each user and company pair. Query it to see who can work where:
SELECT c2g__User__r.Name, c2g__Company__r.Name
FROM c2g__codaUserCompany__c
ORDER BY c2g__Company__r.Name, c2g__User__r.Name
And for a single user:
SELECT c2g__Company__c, c2g__Company__r.Name
FROM c2g__codaUserCompany__c
WHERE c2g__User__c = '<user Id>'
Why a user sees no companies
Work through these in order:
- No User Company record. The user was never linked to a company. Link them in Certinia, or ask your Certinia administrator to. In the Certinia screens the same gap can show as a message saying the user does not have access to the company.
- The permissions do not reach the objects. The user's Salesforce profile or permission sets need read access to the company objects and fields. A user without it sees an empty list, or an error, as if the companies did not exist.
- The Certinia package is not installed in this org (a Sandbox created before the package was installed in production, for instance). Then there are no company objects to read.
- The org was refreshed. A Sandbox refreshed from production may not carry the user links you expect, or the user may not be active in it.
A five-minute diagnostic
- In Setup, open Installed Packages and confirm the Certinia packages are there and licensed.
- Run the second query above for the user: no rows means there is no link.
- In the user's permission sets, check that the Certinia permission sets that cover companies are assigned.
- Sign in as the user, or use Login As where your policy allows, and open the Company list the way they would.
- If you are working in a Sandbox, check the user is active there and the links survived the refresh.
Check the first three first.
When the company objects cannot be read at all
If the company objects cannot be read at all, there are two causes: Certinia is not installed and licensed in the org, or the connected user has no permission to the company objects, c2g__codaCompany__c and c2g__codaUserCompany__c. Check the package first (Setup > Installed Packages), then the user's permissions.
Why it matters for automation
An agent that creates payable invoices must work in a company, because the financial years (and so the periods) and the accounting currencies belong to a company. It can only work in the companies the connected user may work in. If the list is empty, nothing it proposes could be created.
Where BAFO fits
BAFO's Accounts Payable Agent works within the companies the signed-in user may work in. The concepts behind this are in Certinia company, year and period explained.
Frequently asked questions
Does an administrator see every company?
Not automatically. Certinia grants access to a company through a User Company record for that user and that company, so ask your Certinia administrator to link the user.
Why does the same user see companies in the Certinia interface but not through an integration?
An integration acts as a Salesforce user. Check that it is the user you expect and that its permissions reach the company objects through the API, not only through the screens.
Is the User Company record the same as the company selected on screen?
They are related: the record grants access to one company, and the company a person has selected is the one they are working in at the moment. Certinia's help adds that in a multi-company org the user's current company has to be set as a separate step, with no automatic defaulting, and that it also decides which company queue the user and the objects they create are assigned to. In a single-company org the current company is set automatically.
Sources and further reading
Where this page leans on someone else's documentation or standard, it is listed here. Check the release or edition your org runs: official pages change.
- About User Companies (Certinia Help) - help.certinia.com
Keep reading
Certinia company, year and period explained
The three building blocks every Certinia transaction depends on: the company whose books it is, the year, and the period inside it.
SOQL cheat sheet for Certinia accounts payable and Billing Central
Working SOQL for a few of the objects accounts payable and billing work touch: vendors, companies, periods, currencies, contract lines and usage.
How to create Certinia payable invoices from PDF invoices
The steps from a vendor invoice PDF to a Certinia Payable Invoice with BAFO, including what to check at each step.
Why can't a Salesforce user see a record? How to check, layer by layer
The order of checks that finds why a Salesforce user cannot see or edit a record, and the SOQL for each layer.