Export manipulation
Modifies the outgoing data before it is sent to the secondary source.
Type: Export only
It is important to note two things:
There can be only one of these rules as it modifies all outgoing data
The return variable must always be named
s
.s
represents therowData.sourceExportData
to be modified. Failing to return it will result in corrupted data in the BOM.
e.g. given this Javascript for an isPhantom setting
const isNewAssemblyRow =
rowData.isAssemblyRow &&
rowData.isMissingInSecondaryDatasource == true &&
rowData.isFoundInSecondaryDatasource == false;
if (!isNewAssemblyRow)
{ delete s['phantomYN']; }
if (rowData.isAssemblyRow === true)
{ delete s['material']; }
return s;
Last updated