ATC: SELECT option

This command selects either the source document or the new document as the current document. Most commands affect the current document.

  • option is required; however, only one of the following options can be used at a time:
    • SOURCE selects the source document that opened the workflow script as the current document.
    • NEW selects the new document as the current document.

Example

ATC: COPY * NEW;
ATC: SELECT NEW

The above example means “create a new document of the same Doc type of the current document and in the same project, then make the new document the current document.”


Last updated: September 19, 2017 at 9:38 am;  

Related Post

ATC: EXITATC: EXIT

ATC: EXIT condition  | ( WHEN table.field  (operator value-expression | IsChanging)) This command ends the workflow script if conditions are met. This is a useful way to have the remainder of

ATC: FOREACHATC: FOREACH

ATC: FOREACH table state BY sortfield WITH filter; This command begins a block of commands that will repeat once for each row in the specified table (that matches the filter).