By default, the Amazon (FBA) Inventory Adjustments to NetSuite Inventory Adjustments flow can add records of every event type, country, and fulfillment center in Amazon's report to NetSuite. An input filter on the flow's NetSuite import limits the records to the Adjustments event type, to one country, to the fulfillment centers you choose, or to a combination. This article is for integrator.io users who run the FBA Inventory Adjustments add-on and want to control which adjustments reach NetSuite.
When you need the event type filter
Add the filter for the Adjustments event type only if you installed the FBA Inventory Adjustments add-on recently, or if the flow's export uses this report type:
"reportType": "GET_LEDGER_DETAIL_VIEW_DATA"
Without the filter, records of all event types, such as shipments, warehouse transfers, and receipts, are added to NetSuite. To check the report type, open the flow in Flow Builder, select the export, and look in What would you like to export? > HTTP request body.
Open the input filter
Every filter in this article starts the same way.
- Open the Amazon (FBA) Inventory Adjustments to NetSuite Inventory Adjustments flow in Flow Builder.
- On the Post Inventory Adjustments to NetSuite import, select Define options (+), and then select Input filter, which appears in front of the import.
- In Define input filter, in Input, remove the
itemsarray from therecordobject: delete the"items": [and{lines and their closing}and]lines. You can then filter on the fields ofrecord.
Each rule you add in Rules compares a record property, such as record.[Country], with a value. For each rule, set the operand settings on both sides:
- Next to the record property, select Settings, set Operand type to Field and Data type to String, and then select Save.
- Next to the value, select Settings, set Operand type to Value and Data type to String, and then select Save.
Filter by the Adjustments event type
- Open the input filter, and select AND.
- In Rules, select
record.[Event Type], select contains, and enterAdjustments. Set the operand settings for both sides of the rule. - Save the filter, and run the flow.
Only records with the Adjustments event type sync to NetSuite. Records of all other event types are ignored.
Filter by country or fulfillment center
You can filter by country or by fulfillment center, but not both.
Filter by country
- Open the input filter, and select AND.
- In Rules, select
record.[Country], select contains, and enter the country code, such asUSfor the United States,CAfor Canada, orMXfor Mexico. Set the operand settings for both sides of the rule. - Save the filter, and run the flow.
Only records for that country sync to NetSuite.
Filter by fulfillment center
- Open the input filter. For one fulfillment center, select AND. For several, select OR.
- In Rules, select
record.[Fulfillment Center], select contains, and enter the fulfillment center ID. Set the operand settings for both sides of the rule. - For each additional fulfillment center, select Add Rule, and repeat step 2. You can add as many fulfillment centers as you need.
- Save the filter, and run the flow.
Only records for the fulfillment centers you entered sync to NetSuite.
Combine the event type with country or fulfillment center
To sync only Adjustments records for a country or for specific fulfillment centers, add the event type rule first. The flow runs successfully only if the event type rule comes before the country or fulfillment center rules.
- Add the rule described in Filter by the Adjustments event type, but don't save the filter.
- Select Add Group.
- In the new group, add the rules described in Filter by country or Filter by fulfillment center.
- Save the filter, and run the flow.
Only Adjustments records for the country or fulfillment centers you entered sync to NetSuite.