Hello experts,
I need some assistance on the following
I have a workflow after the final approval, the Document is updated to a specific folder and a Generation is created. This works well with only one attachment with Item Handler and can be rename to Final Approval -Document name. If there are two attachments, Item handler will do the generation with only one attachment.
I decided to explore Generation through webreports but this is new to me, i have been able to do the following
[// BEGIN Get workflow attachment - To copy the file name in order to rename it]
[LL_REPTAG_&SUBWORKID WFINFO:ATTACHFOLDER SETVAR:docid /]
[LL_WEBREPORT_FOR DATA:[LL_REPTAG_!docid CHILDREN /] var:"value" /]
[//LL_REPTAG_%value_index CURRENTVAL /] - [LL_REPTAG_%value CURRENTVAL /]
[//Retrieve name of file and Doc ID]
[LL_REPTAG_%value CURRENTVAL RECORD:DataID NODEINFO:NAME SETVAR:DocumentID SHOW SETWFATTR:MV++:"Name of file" /]
[LL_REPTAG_%value CURRENTVAL RECORD:DataID NODEINFO:ORIGID SETVAR:DocumentID SHOW SETWFATTR:MV++:"DocID" /]
[// Create GENERATION for the file and copy it to a specific folder]
[LL_REPTAG_%value CURRENTVAL RECORD:DataID NODEACTION:CREATE:GENERATION:[LL_REPTAG_'2834643' /]:[LL_REPTAG_'Final approval -' /]
[LL_WEBREPORT_ENDFOR /]
In the last line , i could not figure out how to capture the file name from the attribute "Name of file" to give it to the generation newly created and also how to make it copy the second name from the "Name of file" to the second attachment for the second generation if there are two attachments in the workflow.
Thank you for your usual cooperation.