Untitled

mail@pastecode.io avatar
unknown
vbscript
2 years ago
372 B
1
Indexable
Never
ClearCollect(
    colProjectAttachs;
    DataCardValue7.Attachments
);;
UpdateIf(
    colProjectAttachs;
     !StartsWith(DisplayName;"Project-") ;
    {
        Name: "Project-" & Name;
        DisplayName: "Project-" & DisplayName
    }
);;
RemoveIf(
    colFinalAttachments;
    "Project-" in DisplayName
);;
Collect(
    colFinalAttachments;
    colProjectAttachs
);;