6.3 – Filter Transform¶
Clean Up the Dataset¶
6.2 creates all three charge lines on every order, whether or not that order was charged for them, and a comment line on every order whether or not the customer left one. Those empty lines must go before you import the orders into Sage 200. The Filter transform removes them.
Design > Transform Setup¶
-
Drag a Filter transform onto the design surface and connect it to the Aggregate transform.
-
Save the integration, then double click the Filter to open its setup.
-
Make sure the Transform Id is a recognisable name.
- A new Filter is already named
Filter. For training, leave it as it is. A second Filter would be namedFilter_1; rename that one. - Unlike the Aggregate, the Filter has no Priority field, because it is the only transform connected to the Aggregate.
- A new Filter is already named
Transform > Field Mapping¶
- Press the Field Mapping tab and change the Current Transaction Id to
OrderDetails. -
Enter the Record Evaluation formula:
Read it as: keep every item line; keep a charge line only if it has a value; keep a comment line only if there is a comment. You set the three line types in 6.1 and 6.2:
0for an item,2for a charge and3for a comment.- The editor checks the formula as you type and reports No Errors Found beneath it.
The formula must evaluate to True or False
The formula must return True or False. When it returns False, IMan removes (filters) the record from the dataset.
-
Press Refresh and expand the first order.
- It keeps its two item lines and its
Deliverycharge, and losesAssemblyandTwo Man Supplement. Those two columns were empty for that order, soGetParentreturned0and the formula excluded them.
The other two orders show the rest of the behaviour.
FBRN-309243keepsDeliveryand its comment.FBRN-309244, the only order charged for all three, keepsAssembly,Two Man SupplementandDelivery, and loses its empty comment line. - It keeps its two item lines and its
Refresh from the transform that changed, and work downwards
Refresh from the transform that changed and work downwards. A Refresh replays whatever its upstream transform last produced. If you change the Aggregate and refresh only the Filter, the Filter shows the old data and does not warn you.
- Press Close at the bottom of the transform, then Save the integration.



