...
- Open the model
Channel Package Check
- Add a new stream to your model from
Latest Package All Channels
, calledChannel List Reconciliation
- Drag all the attributes from
Latest Package All Channels
intoChannel List Reconciliation
- Create a database collector, using the datasource
Inventory DB
, to read all records from the tableSOURCE_ALL_CHANNELS_LIST
- Add a lookup pipe from the database collector
SOURCE_ALL_CHANNELS_LIST
to the streamChannel List Reconciliation
- Call the pipe
inv
- Go to the Order/Index section
- Press
Insert excerpt _attributes_show _attributes_show nopanel true - Drag the attribute
CustomerRef
from the left hand box into the list of Order/Index attributes - Drag the attribute
CustomerRef
from the right hand box into the list of Order/Index attributes again – on top of the matching attributeCustomerRef
you created above – this will populate the right hand part of the matching attribute - Drag
Channel
from the right hand box into the list of matching attributes - Drag
Channel
from the right hand box into the list of matching attributes again - on top of the matching attribute forChannel
that you created above
- Call the pipe
This lookup will find values in the external database table which match the output records on CustomerRef
and Channel
- Press in
in the main pipe configuration form to save your changesInsert excerpt _finish _finish nopanel true - Open the configuration form for the stream
Channel List Reconciliation
- Add an attribute with Name InvoiceCheck
- In this attribute, you will record whether you returned the channel from the inventory table - to do this, you will count the records returned from the lookup; if this is 1, you will record that the reconciliation check was successful:
- Set the Expression of the Attribute to:
...