Source ERP · 21 of 69
TxDownloaderPro ← Salesforce — IFS: what the shipped default templates set up
Read it in the terminal with "dlake skills show dlake-txdownloaderpro-salesforce/erps/ifs". It extends the dlake-txdownloaderpro-salesforce skill, which holds what is true whatever the source ERP.
TxDownloaderPro ← Salesforce — IFS: what the shipped default templates set up
Keep this skill current.
dlakeships updates often and this text is embedded in the CLI you have installed. Before relying on it, comparedlake --versionwithnpm view @commercient/dlake version; if they differ, runnpm install -g @commercient/dlake@latestand thendlake skills install, which overwrites the installed skill files with the current text.
dlake-txdownloaderpro is the parent skill and the authority for everything general: what the
writeback objects are and how they are exposed to the Data API (§1–§7), how a key is scoped to
them, the TxDownloaderPro configuration table and the TxDownloaderProTrans transaction table
and their columns (§9, §10), the SFUpdated state machine (§10), the field-mapping columns
ProcessStructure, ResultStructure, XMLResult, ERPResponse, JsonRequest and
JsonResponse and the {{Object.Field}} template paths that read them (§11), the
filter-operator vocabulary (§12), and the txdownloaderpro_* tools that are the preferred way
to configure any of it (§14). Read it first; this page does not repeat it.
dlake-txdownloaderpro-salesforce is the Salesforce page and carries the destination-side
detail: it is the skill this page is a child of, and the authority for the conventions that hold
across every ERP, so read it before this page. This page is
dlake-txdownloaderpro-salesforce/erps/ifs.md, and that skill’s ERP table is what points at it.
What follows is only what the shipped default templates for this pair themselves set,
described from their DefaultQuery, DefaultProcessStructure and DefaultResultStructure
columns. It is a description of structure: which objects and marker columns are read, which
parts and members are filled, which token names appear. No template text is reproduced. This
page grows as the default catalogue does.
1. What the templates deliver
One row per process the default set ships for this pair. The business language is the
catalogue’s own, where it carries any; where it does not, the row says what the source and
destination objects are and what the operation flags allow. Operations are the union of the
IsInsert, IsUpdate and IsDelete flags over that process’s templates.
| Process | What it delivers | Source → destination | Templates | Operations |
|---|---|---|---|---|
| Update Customer | Salesforce Account to Update IFS Customer | Account → Customer | 2 | update |
| Create Activity | Salesforce Task to IFS Project Activity | Task → Activity | 1 | create |
| Create Customer Contact | Salesforce Contact to IFS Customer Contact | Contact → Contact | 1 | create |
| Create New Contact | Salesforce Contact to IFS Person, Address and Customer Contact | Contact → Contact | 1 | create |
| Create New Customer | Salesforce Account to IFS Customer | Account → Customer | 1 | create |
| Create New Customer Order | Salesforce Order to IFS Customer Order | Order → CustomerOrder | 1 | create |
| Create New Customer with Address | Salesforce Account to IFS Customer WIth Address | — → — | 1 | create |
| Create New Customer With Address With Tax | Salesforce Account to IFS Customer with Address and Tax | Account → Customer | 1 | create |
| Create New Order | Salesforce Order to IFS Customer Order | Order → Order | 1 | create |
| Create New Part | Salesforce Product to IFS Part and Sales Part | Product2 → Part | 1 | create |
| Create New Project | Salesforce Opportunity to IFS Project | Opportunity → Project | 1 | create |
| Create New Sales Contract | Salesforce Contract to IFS Sales Contract | Contract → SalesContract | 1 | create |
| Create New Service Contract | Salesforce Contract to IFS Service Contract | Contract → ServiceContract | 1 | create |
| Create Order with Customer Tax | Salesforce Order to IFS Customer Order with Customer Tax | Order → Order | 1 | create |
| TxDownloaderPro_116_17 | — | Order → CustomerOrder | 1 | create |
| TxDownloaderPro_116_23 | Salesforce Account to IFS Contact | — → — | 1 | create |
| TxDownloaderPro_116_27 | Salesforce Account to IFS Customer with Address | Account → Customer | 1 | create |
| TxDownloaderPro_116_34 | Salesforce Account to IFS Customer with Address and Tax | Account → Customer | 1 | create |
| Update Contact with Address | Salesforce Contact to Update IFS Customer Contact with Address | Contact → Contact | 1 | update |
| Update Customer Contact | Salesforce Contact to Update IFS Customer Contact | Contact → Contact | 1 | update |
| Update Customer with Address | Salesforce Account to Update IFS Customer | — → — | 1 | update |
| Update Project | Salesforce Opportunity to Update IFS Project | Opportunity → Project | 1 | update |
Across the 23 default templates: 17 carry IsInsert, 6 carry IsUpdate, 0 carry IsDelete. A
flag decides which operation the process is allowed to perform, not which one it performs on a
given record. 1 catalogue description was not printed because they are placeholders or carry
text that is not ours to publish.
2. The process rows the import creates
Importing one of these templates writes one TxDownloaderPro row. The columns the import fills
from the template are the ones the parent’s §9 describes: the query goes into Query, the
inbound mapping into ProcessStructure, the outbound mapping into ResultStructure, and the
operation flags onto the row. In-flight state is never in this table — it is in
TxDownloaderProTrans (parent §10), keyed by SFUpdated.
A default template carries no TxDownloaderDllName and no template name of its own. It is
identified by its field-process version, and the version is what supplies the DLL on a create.
That is where erpProcessId comes from, so a create against the wrong version produces a row
that never matches a run.
| What the import sets | Where it comes from |
|---|---|
Query | the template’s DefaultQuery — section 3 |
ProcessStructure | the template’s DefaultProcessStructure — section 4 |
ResultStructure | the template’s DefaultResultStructure — section 5 |
IsInsert / IsUpdate / IsDelete | the template’s own flags — section 1 |
the DLL and erpProcessId | the field-process version, not the template |
The field-process versions this pair’s default templates belong to: TxDownloaderPro_116_9,
TxDownloader_116_4, TxDownloader_116_7, TxDownloaderPro_116_23, TxDownloaderPro_116_1,
TxDownloaderPro_116_22, TxDownloaderPro_116_3, TxDownloaderPro_116_27,
TxDownloaderPro_116_34, TxDownloaderPro_116_30, TxDownloader_116_6, TxDownloader_116_5,
TxDownloader_116_10, TxDownloader_116_8, TxDownloader_116_12, TxDownloaderPro_116_28,
TxDownloaderPro_116_17, TxDownloaderPro_116_24, TxDownloader_116_2,
TxDownloaderPro_116_33, TxDownloaderPro_116_20, TxDownloaderPro_116_19,
TxDownloader_116_16.
3. What the query retrieves
Query does not have one shape across the product (parent §9). For this pair, 23 carry a
SELECT statement in the CRM’s own query language. No query text is reproduced here; what
follows is what those queries read and filter on.
- Objects read:
Task,Contact,Account,OrderItems,PricebookEntries,Opportunity,Contract. - Child collections pulled in the same query:
OrderItems,PricebookEntries. A header retrieved without its lines is a query that does not name the child collection. - Marker and key columns the queries name:
ExternalKey__c,CommercientSF__Commercient_ArCustomerCode__c,CommercientSF__ExternalKey__c. These are the columns a user’s flag lands in and the columns the run writes an outcome back to; which ones are in theWHEREis what decides whether a record is in scope at all. - Operators present:
=,AND, an empty-string test,!=, a null test. The parent’s §12 is the authority on the vocabulary; the point here is only which of it these templates use. - Where the filtering happens: in the query, on the CRM side, before anything reaches the source system. Narrowing a template means editing its query — not its mapping.
4. The inbound mapping document
ProcessStructure is a flat JSON object: each member names a field on the source side and its
value is a template resolved against the retrieved record’s XML document (parent §11). Of this
pair’s 23 default templates, 23 carry a DefaultProcessStructure. A parseable document carries
about 18 members.
- Template path roots used:
Account,Contact,Order,Contract,OrderItems,Opportunity,Product2,Task. A path’s first segment has to match the element the engine emits, and the document root itself is never part of the path. Line.section members present:Line.mainXml,Line.CatalogNo,Line.CatalogDesc,Line.BuyQtyDue,Line.SaleUnitPrice,Line.PART_NO,Line.PART_DESCRIPTION,Line.BUY_QUANTITY_DUE,Line.UNIT_PRICE_IN_OUR_CURRENCY. 4 templates name the collection throughLine.mainXml; the members beside it are resolved against that collection’s own root rather than through the header.
5. Result structure — what goes back to the CRM
ResultStructure is the outbound half: up to four parts, each optional, filled from the source
system’s response after the write (parent §11). Of this pair’s 23 default templates, 16 carry a
parseable DefaultResultStructure, 7 carry none.
| Part | Filled by | What it addresses | Members present |
|---|---|---|---|
Part1 | 16 templates | the record the run is already working with | a source-path-to-CRM-field map |
Part2 | 0 templates (16 explicitly null) | the child/line records under it | — |
Part3 | 0 templates (16 explicitly null) | a new record, matched on an external id field | — |
Part4 | 0 templates (16 explicitly null) | a different record, addressed by an id field | — |
- CRM fields
Part1writes to:ExternalKey__c,CommercientSF__Commercient_ArCustomerCode__c,CommercientSF__ExternalKey__c. These are the fields on the flagged record that carry the source system’s key or outcome once the write has happened — the names only; what lands in them is the response, per record. - Response fields it reads them from:
Cust_CustomerId,OrderNo,PERSON_PersonId,ActivitySeq,PersonId,CustomerId,PART_PartNo,ProjectId,ContractNo,ContractId. The map is written source-path first, CRM-field second (parent §11); the wrong way round resolves to the same silent empty string as a mistyped path.
6. Verifying
Read the imported row before a run, not after. The parent’s §14 is the authority on these tools and §10 on the state they report.
# the processes this tenant has, with their unresolved-error counts
dlake admin txdownloaderpro_list_processes
# one process in its edit shape, including the query and both mapping documents
dlake admin txdownloaderpro_get_process --processId <id>
# run the SAVED query against the live CRM and render one record as the engine’s XML
dlake admin txdownloaderpro_preview_xml --processId <id>
# the state breakdown the parent §10 reads
dlake txdownloaderpro transactions <processId> --status <state>
The two failures this pair’s templates actually produce: a run that retrieves nothing, which is
the query’s own condition and not the mapping; and a record that arrives with fields empty,
which is a path that does not match the emitted document. Both are read through
txdownloaderpro_preview_xml, against a real record.
7. Where this sits
dlake-txdownloaderpro— the parent: exposure, key scoping, the two tables,SFUpdated, the mapping columns, the filter vocabulary, thetxdownloaderpro_*tools. Read it first.dlake-txdownloaderpro-salesforce— the Salesforce destination page, which this page is a child of: the query shape, marker conventions and mapping conventions this destination uses across every ERP, and the ERP table that lists this page and its siblings.dlake-integration-setup— registration, CRM choice and the ERP connector, of which writeback is one step.dlake-crmproanddlake-normalsync— the inbound leg, going the other way.dlake— general tenant operation.
This page describes the shipped default template set for this pair, and grows as that set does.