Examples of Infoplus Scripts

Here are some real-world examples of solutions that have been built in Infoplus using Scripts.

For more examples see the articles written under our Scripts bridge page


Due to the ever-changing nature of writing and maintaining scripts, Infoplus does not provide support in this area. We recommend someone in your IT department handle scripting requests internally so that you keep all control over the process.

Automatically place Orders on Hold

Use Case:  You want to place a Hold on any Order that is placed meeting certain conditions (such as, for a total value over some amount, or for a specific line item, or with a special ship-to destination).  


This script could be assigned to run with a Trigger that searched for new Orders containing the Item "SOURCE".

Add a Line Item to an Order

Use Case:  You want to a certain line item to any order that matches a specific condition.  This script could be assigned to run with a Trigger that identified orders with the condition in question.  

Update the names of all Third-Party Parcel Accounts to match their Account Numbers

Use Case:  To clean up the data in your Third Party Parcel Account table, you want to update all records so that their Account Names match their Account Numbers.  


This can be done by creating a simple script like this, then selecting rows from the Third Party Parcel Accounts table and using the Bulk Run Script process.

Split an Order into Two Orders

Use Case:  Any time an Order is placed for any one or more specific SKUs, peel those SKUs off into a second-order (with the same root order number).  


To use this script, you'll need to replace the top lines with the SKUs you want to be peeled off (or customize the if statement on line 23 to use your own custom rule).


This script could be assigned to run with a Trigger that searched for new Orders containing the Item "SOURCE".

Peel a special SKU off into a new order

Use Case:  Any time an Order is placed for the Item "SOURCE", a second-order should be created, with the same root order number, for the Item "TARGET".


This script could be assigned to run with a Trigger that searched for new Orders containing the Item "SOURCE".

Change an Order containing Items set as Hazmat to land on hold with a Tag

Use Case: When an Order lands for an Item set up as Hazmat, place the Order on hold and add a tag to it.