Trigger: When an order is created

Review the following on creating a trigger that fires 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.
πŸ‘

Example

If 5 activities are created in the 2-minute window, 5 separate automation runs will be started.

Trigger Filtering

To limit the trigger to only certain orders,add a trigger condition which will prevent the trigger from executing unless all conditions are met. Do the following:

  1. On the trigger item, press the ...Β menu button and choose Settings.
  2. In theΒ Trigger Conditions section, specify a trigger condition.
πŸ‘

Example

To filter the trigger to only run for certain order types, enter the following condition: @equals(triggerBody()?['orderTypeCode'], 'MEETING')

  1. When finished, pressΒ Done.
πŸ“˜

Note

This works on any trigger, not just the Orders trigger.

Outputs

Code NameField NameType
address1Ship To Address Line 1string
address2Ship To Address Line 2string
address3Ship To Address Line 3string
addressFormatShip To Address Format Codeinteger
affectInventoryAffects Inventoryboolean
balanceBalance Amountnumber
batchNumberBatch Numberstring
billToIdBill To iMIS IDstring
cityShip To Address Citystring
companyCompany Namestring
companyIdCompany iMIS IDstring
companyMemberTypeCompany Member Typestring
companySortCompany Sort Codestring
countryShip To Address Countrystring
customerReferenceCustomer Referencestring
discountCodeDiscount Codestring
emailShip To Email Addressstring
enteredByEntered Bystring
enteredDateTimeEntered Date/Timestring
entityCodeEntity Codestring
Ufreight1Freight 1 Amountnumber
Ufreight2Freight 2 Amountnumber
freightTaxFreight Tax Amountnumber
fullAddressShipp To Full Addressstring
fullNameShip To Full Namestring
handling1Handling 1 Amountnumber
handling2Handling 2 Amountnumber
handlingTaxHandling Tax Amountnumber
holdCodeHold Codestring
holdCommentHold Commentstring
holdFlagIs Held?boolean
invoiceDateInvoice Datestring
invoiceNumberInvoice Numberinteger
invoiceReferenceNumberInvoice Reference Numberinteger
lineTotalLine Total Amountnumber
memberTypeShip To Member Typestring
notesOrder Notesstring
orderDateOrder Datestring
orderNumberOrder Numbernumber
orderTypeCodeOrder Type Codestring
payTypePay Typestring
phoneShip To Phonestring
shipMethodShipping Methodstring
shipPapersDateTimeShip Papers Datestring
shippedDateTimeShipped Datestring
shipToIdShip To iMIS IDstring
sourceCodeSource Codestring
sourceSystemSource Systemstring
stageOrder Stagestring
stateProvinceShip To State/Provincestring
statusOrder Statusstring
tax1Tax 1 Amountnumber
tax2Tax 2 Amountnumber
tax3Tax 3 Amountnumber
taxAuthor1Tax 1 Authorstring
taxAuthor2Tax 2 Authorstring
taxAuthor3Tax 3 Authorstring
taxExemptTax Exemptstring
taxRate1Tax 1 Ratenumber
taxRate2Tax 2 Ratenumber
taxRate3Tax 3 Ratenumber
taxRateFhTax Ratenumber
termsCodeTerms Codestring
titleOrder Titlestring
totalChargesOrder Total Chargesnumber
totalPaymentsOrder Total Paymentsnumber
totalQuantityBackorderedTotal Quantity Backorderedinteger
totalQuantityOrderedTotal Quantity Orderedinteger
totalWeightTotal Weightnumber
undiscountedTotalUndiscounted Totalnumber
vatTaxCodeFhVAT Tax Codestring
zipShip To Postal Codestring


Did this page help you?