I’m working on an Import Scenario that will update a sales order’s user-defined attribute.
The simplified process will go as followed:
- Identify the order by Type and Number
- Open or Re-Open the order (QT requires the Re-Open)
- Set the attribute
- Return the order it starting state
Steps 3 and 4 need to be conditional and I haven’t found any documentation on how to do that. For instance, step 3 would need something like:
IIf(=[Document.OrderType] = ‘QT’, <Action: Open Order> (OpenOrder), <Action: Re-Open Order> (ReopenOrder)
As a work-a-round I am thinking about using Target Restrictions to limit the data to a single condition, i.e., QT and Completed or QT and Canceled. That way I can set the Mapping fields and change them each time to match the current conditon. I’m really trying to avoid this since it will be fairly manual.