ATC: ATTACH MATCHING | COPY matching-pattern
This command attaches files from the source document to the target document.
- MATCHING is required if the intention is to attach a link to specific files from the source document. MATCHING cannot be used with COPY. In V2021, LINK can be used as a synonym for MATCHING.
- COPY is required if the intention is to create copies (clones) of specific files already attached to the target document and then also attach them to the target document. COPY cannot be used with MATCHING. In V2021, CLONE can be used as a synonym for COPY.
- matching-pattern is required. It can include one or two wildcards (%) at the beginning and/or end, along with a case-sensitive filename.
ATC: ATTACH MATCHING %.pdf
The above example means “attach all PDF Attachment files on the source document to the target document.”
ATC: ATTACH MATCHING %Notification%
The above example means “attach all Attachment files that contain the word Notification on the source document to the target document.”
ATC: ATTACH COPY BondoniContract.pdf ATC: SET TargetRow.Filename = [Final BondoniContract.pdf]
The above example means “copy the BondoniContract.pdf file from the source document and attach it to the target document as Copy of BondoniContract.pdf then change the name of the file to Final BondoniContract.pdf.
ATC: EXIT HAS DocAttachedFile WITH FileName LIKE ‘*.xlsm’;
ATC: GET [Budget] * 0001; WITH SELECT SOURCE
ATC: ATTACH COPY %.xlsm
ATC: SET TargetRow.Filename = [DCO_DocHeader_SourceContact] Line Detail.xlsm
The above example means
- exit if we already have an attached workbook
- GET the initial budget document as the source
- COPY (clone) the workbook attached to the budget onto the current document
- Adjust the name of the newly cloned attachment
Last updated: August 31, 2021 at 15:20 pm; green text = new