Material Master Sync in Practice: From Guanjia Soft BOM to Xiaoman OKKICRM Product Library
What This Strategy Solves
In many manufacturers that also run retail businesses, material master data lives in two systems: ERP holds the full BOM and basic data, while the CRM needs a clean "product" view for sales, quoting, and contracts. This strategy pushes Guanjia Soft's standard BOM records into the Xiaoman OKKICRM product library so that the two sides stay aligned, codes are traceable, and product groups map cleanly. In our customer work we typically deliver this kind of sync on Qeasy (轻易云) using a "centralised code mapping + header/body phased rollout" pattern. This guide walks through the implementation in detail.
Data Flow and Field Mapping
The flow is straightforward: Guanjia Soft → Qeasy integration platform → Xiaoman OKKICRM. The source side is a query-type call; the target side is an execute-type push call.
On the source side (Gujia Soft), the call hits /api/GraspServer/Process with operation type query and base info type standardbom. Pagination uses PageIndex=1 and PageSize=10000. The key field here is pusercode, the unique business code of the material — every downstream mapping revolves around it.
On the target side (Xiaoman), the call goes to /v1/product/push. The critical field mapping is:
| Target Field | Meaning | Source |
|---|---|---|
name | Product name | Source pfullname |
product_no | Product code | Source pusercode, used as the alignment key between the two systems |
model | Product model | Reverse-looked-up via _findCollection from the source standard table by pusercode |
group_id | Product group | Looked up via _findCollection from the Xiaoman group table by bomtype |
Note that the product_no field description reads "ATC NO" — this is just a business-meaning label on the target side. The actual value written is still pusercode, not the description text. This is the most common pitfall for newcomers.
How to Configure on Qeasy
In Qeasy's strategy configuration, this strategy is essentially a "source query + target push" pipeline. There are four key configuration points:
First, on the source side, choose metadata type QUERY with a POST request. Put paramkey=standardbom, apitype=query, and managename=GraspCMServerApi.dll into otherRequest. This is the fixed trio for Guanjia Soft's API family — missing any one of them will fail silently.
Second, on the target side, choose WebAPI (EXECUTE), POST to /v1/product/push, and bind the key field product_no using the {{pusercode}} template so the codes map one-to-one.
Third, the related fields model and group_id must be fetched through _findCollection calls against the source standard table and the Xiaoman group query respectively, rather than hard-coded in the mapping. Qeasy expands the variables at runtime, no extra scripting needed.
Fourth, set the source PageSize to 10000 to pull a large batch in one shot and let Qeasy handle the in-memory processing. If the material volume exceeds this threshold, a safer approach is to reduce the page size and pair it with an incremental timestamp filter.
Implementation Steps
Step one: offset the schedule windows so the two strategies don't collide. The source runs at 25 7-22 * * * (minute 25 of every hour, between 07:00 and 22:00) and the target runs at 45 7-22 * * * (minute 45). This leaves a clear window for the source to fetch and process the data.
Step two: run a one-off "full trigger" — usually by stopping the schedule and executing the strategy manually — to pull every standardbom from Guanjia Soft and push it into Xiaoman as a baseline. The purpose is twofold: validate the mapping and seed Xiaoman with a complete product skeleton.
Step three, after the baseline is done, switch to an "incremental start point": add a last-modified-time filter on the source metadata so that only changed records are pushed going forward. The incremental start point must align with the moment the full trigger finished, otherwise you will either push duplicates or miss records.
Step four: keep the schedule at hourly during business hours and drop to every four hours during off-peak. A common Qeasy pattern is the "incremental + full dual track": daily runs on incremental, weekly or monthly windows run a full comparison and produce a diff report — humans only handle the diff items.
Step five: centralise the code mapping and the bomtype → group translation in Qeasy's mapping centre rather than scattering them across multiple strategies. When product categories are reorganised later, only one place needs to change.
Lessons Learned
First pitfall: the product_no field description (ATC NO) gets mistaken for the value. We have seen this more than once — engineers copy "ATC NO" directly into the request body and end up with every product code on Xiaoman being the literal string "ATC NO". The safe approach is to trust only the field name (product_no) and bind the source code via the template variable.
Second pitfall: _findCollection calls without ID validation. For related fields like model and group, if the query does not pass a unique identifier, Qeasy will pull the entire table back and compare in memory, which will time out for any non-trivial data volume. The safe approach is to enable idCheck on the source metadata and include the business code in the query condition.
Third pitfall: the full trigger and the incremental start point are not aligned. A classic mistake is running a full trigger without recording the "full trigger completion time" and then immediately turning on incremental, which leads to duplicate pushes or missed records. When redoing it, always record the full completion time in the strategy notes and set the incremental start point to five minutes before that moment.
Fourth pitfall: Guanjia Soft's pagination is ignored. PageSize defaults to 10000. If a customer's material volume is larger, the API will silently truncate the response and data will be lost without any warning. Cross-check the total count using SQL or Guanjia Soft's built-in tools first, and decide whether to split into multiple pages.
Fifth pitfall: target group_id cannot be found. bomtype is free text in Guanjia Soft and may contain spaces, mixed casing, or prefixes/suffixes. Passing it directly to _findCollection will return nothing. The safe approach is to do a trim and case-normalise in the mapping centre before passing it to the query.
When to Use and When Not to Use
Use this when Guanjia Soft is the ERP master, Xiaoman is the CRM/sales front-end, the two systems need a synchronised material view, the deployment is on-premise, and the BOM structure is stable with a manageable change frequency.
Do not use this when the material models between Guanjia Soft and Xiaoman differ significantly, when bidirectional real-time writeback is required, or when the target already contains a large amount of manually maintained products — in those cases opening up the sync will create a lot of conflicts, and you should do a data governance pass before turning the sync on.