KBA-01468: Using Workflow to create a new doc for each Item on the Source doc

Problem:

Sample Workflow: Create a new Doc (different DocType) for each Item on the Source Doc.

Solution:

In the example below, the Invitation to Bid document is creating a Bid Package for each Item on the Invitation to Bid document.

ATC: FOREACH DocItem BY DocItemNumber
ATC: COPY  * =; CURRENTITEM
ATC: SET DocTypeKey = 33ac1a19-7709-4137-a337-b72272893e66
ATC: BOOKMARKSOURCE NEW
ATC: SET Title = Bid Package – [DV_DocItem_Description]
ATC: BOOKMARKSOURCE Source
ATC: Set DocNo = #
ATC: SAVE
ATC: SELECT SOURCE
ATC: ENDLOOP

Additional Comments:

For more information about the ATC commands, see ATC Scripts and Automatic Workflow and Index of ATC commands.


KBA-01468; Last updated: November 8, 2016 at 13:22 pm;
Keywords:  sample workflow; ATC workflow; creating Bid Packages