Trigger: When an order is created
Type: Trigger
Occurs: Whenever a new order record is added to iMIS (Note: an edit/update will not fire this trigger!)
Polling interval: 2 minutes
Payload: The new Order record that was just inserted (all fields on the Orders table)
Splitting: The automation will run once for each new record. (If 5 orders are created in the 2-minute window, 5 separate automation runs will be started.)
Trigger Filtering
To limit your trigger to only certain orders, you can add a trigger condition which will prevent the trigger from executing unless all conditions are met.
On the trigger item, press the ... menu button and choose Settings.
In the Trigger Conditions section, specify a trigger condition. For example, to filter the trigger to only run for certain order types:
@equals(triggerBody()?['orderTypeCode'], 'MEETING')
When finished, press Done.
Note: This works on ANY trigger, not just the Orders trigger!
Outputs
Code Name | Field Name | Type |
---|---|---|
| Ship To Address Line 1 | string |
| Ship To Address Line 2 | string |
| Ship To Address Line 3 | string |
| Ship To Address Format Code | integer |
| Affects Inventory? | boolean |
| Balance Amount | number |
| Batch Number | string |
| Bill To iMIS ID | string |
| Ship To Address City | string |
| Company Name | string |
| Company iMIS ID | string |
| Company Member Type | string |
| Company Sort Code | string |
| Ship To Address Country | string |
| Customer Reference | string |
| Discount Code | string |
| Ship To Email Address | string |
| Entered By | string |
| Entered Date/Time | string |
| Entity Code | string |
| Freight 1 Amount | number |
| Freight 2 Amount | number |
| Freight Tax Amount | number |
| Shipp To Full Address | string |
| Ship To Full Name | string |
| Handling 1 Amount | number |
| Handling 2 Amount | number |
| Handling Tax Amount | number |
| Hold Code | string |
| Hold Comment | string |
| Is Held? | boolean |
| Invoice Date | string |
| Invoice Number | integer |
| Invoice Reference Number | integer |
| Line Total Amount | number |
| Ship To Member Type | string |
| Order Notes | string |
| Order Date | string |
| Order Number | number |
| Order Type Code | string |
| Pay Type | string |
| Ship To Phone | string |
| Shipping Method | string |
| Ship Papers Date | string |
| Shipped Date | string |
| Ship To iMIS ID | string |
| Source Code | string |
| Source System | string |
| Order Stage | string |
| Ship To State/Province | string |
| Order Status | string |
| Tax 1 Amount | number |
| Tax 2 Amount | number |
| Tax 3 Amount | number |
| Tax 1 Author | string |
| Tax 2 Author | string |
| Tax 3 Author | string |
| Tax Exempt | string |
| Tax 1 Rate | number |
| Tax 2 Rate | number |
| Tax 3 Rate | number |
| Tax Rate | number |
| Terms Code | string |
| Order Title | string |
| Order Total Charges | number |
| Order Total Payments | number |
| Total Quantity Backordered | integer |
| Total Quantity Ordered | integer |
| Total Weight | number |
| Undiscounted Total | number |
| VAT Tax Code | string |
| Ship To Postal Code | string |