User Permissions Needed
Common Integration Patterns


Integration User Pattern
For the full list of objects and how they relate, see FieldKo Data Model and Export FieldKo Data and Photos.


The Core Objects at a Glance
Orders to Your ERP
To send orders to your ERP, have your middleware pick up new FieldKo orders and their line items, and then record the result on the order:- Add your own fields for the handoff, such as ERP Order Number and ERP Status, instead of changing Status. Reps choose Status at check-out, and the app never offers Sent or Send Failed, which FieldKo reserves.
- Orders arrive when reps sync, so line items can arrive in a later batch than their order. Process an order only when its line count is complete: the Is Total Order Line Items synced? field is true when the order’s line count matches its lines.
Master Data from Your ERP
Load master data in dependency order: accounts, then products, then price books and entries, then contracts and ranging. See Import and Update Data. Remember that FieldKo applies its own rules, for example:- When a FieldKo product becomes Inactive, FieldKo deactivates its price book entries and product set lines.
- When an account’s owner changes, FieldKo can move future visits and share recent orders with the new owner, depending on Transfer Data On Change Of Account Owner. See Remove a Rep’s Access.
- Reps get only the price books linked to their accounts through an active FieldKo contract, and that are active and valid today. See Set Up Products, Ordering, and Ranging.


Load Data in Dependency Order
Use External IDs and Upsert
The FieldKo packages don’t include external ID fields on accounts, products, or price books. Create your own, so your integration can upsert records by the ERP’s key instead of storing Salesforce record IDs:- On each object you load, create a text field, such as ERP Product Code, and select External ID and Unique.
- Upsert records on that field. Reference parent records by their external IDs too, for example a FieldKo Pricebook Entry’s FieldKo Product by ERP Product Code.
Set Up an Integration User
Run each integration as its own user, never as a rep or admin:- Create a user with the Salesforce Integration user license, if your contract includes it, and an API-only profile. For license options, see User Licenses in Salesforce Help, or ask your Salesforce account executive. With Salesforce included, ask your FieldKo account manager.
- Create a permission set that grants only the object and field access the integration needs, such as read on FieldKo orders and edit on FieldKo products. Assign it to the integration user.
- Assign the integration user a license for each FieldKo package whose objects it uses. See Assign FieldKo Licenses.
- Assign your automation bypass permission set. See Avoid Triggering Rep-Facing Automation.
Choose an API or Tool
Which objects you can use with Change Data Capture, and how many events you can deliver, depends on your edition and add-ons. Check your Salesforce contract or ask your Salesforce account executive.
Every API call counts toward your org’s API allocation, which the FieldKo Atlas app also uses when reps sync. See API and Platform Limits.
Avoid Triggering Rep-Facing Automation
Large loads can fire your own flows thousands of times, such as manager alerts on every order. Give integration users a custom permission, and check it in your flows. See Bypass Your Flows for Integration Users. FieldKo’s own triggers and flows always run, for integration users too. Records you load must follow FieldKo’s rules: for example, every visit needs an account, a sales representative, and a date inside an active call cycle for that rep. If a bulk load fails with time or central processing unit (CPU) limit errors, reduce the batch size in your tool.

Checks Salesforce Runs When a Visit Is Saved
Best Practice
Validate Third-Party Image Recognition Before You Rely on It
FieldKo doesn’t include image recognition. Its AI-Guided Capture (AI is artificial intelligence) checks only a survey photo’s quality on the device, doesn’t recognize products, prices, or facings, and doesn’t save its result. Survey photos are stored in Salesforce, so a third-party image recognition tool reads them from there and writes any results back through your own integration, following the patterns on this page. See Export FieldKo Data and Photos and Take Photos with Smart Camera. Before reports or decisions use the tool’s results:1
Pick a Narrow Task
Choose one task a person can check, such as “Is the promotional sign visible?” or “Is this known product on the shelf?”.
2
Build a Validation Set
Sample photos across store formats, lighting, devices, shelf density, packaging, and regions, and have a person record the correct answer for each.
3
Measure Precision and Recall
Precision is how often a positive result is right; recall is how many true positives the tool finds. Measure both by category, with the cost of each kind of error.
4
Match the Decision to the Confidence
Let the tool surface low-risk suggestions, send uncertain results to a reviewer, and require stronger proof before costly or customer-facing actions. A person stays accountable.
5
Pilot, Keep a Trail, and Revalidate
Compare against the human process, including setup and supervision costs. Keep the original photo, the tool’s version, and any correction. Revalidate after packaging, category, or model changes.


Measuring an Image Recognition Tool
These metrics need your own validation records.
Common pitfalls: treating a photo-quality result as a compliance result; automating an unclear standard or out-of-date product list; trusting a vendor’s accuracy figure from another category or store format; and correction work that cancels the time saved.