Hi all, how i can get the index of element from a colletion of elements?
I’ve a workflow that ask for input. That input is a order number from my company. The order number is a 4 numbers (example: 1070).
In a folder in my pc called “PDF”, there is all the pdfs generated from orders. The pdfs names are like “Ordine nr. 1070.pdf”.
I’ve get all files from pdf folder, clean the name to get only the last number (order number) and check if input match. If input match it get all files from excel file that have the same name as pdf (Ordine nr. 736.xlsx) and copy all files from a column of excel and past in a draft email.
All work fine, but last is to attach at the draft email the original pdf file choose from input. My idea is to get all files from pdf folder in a collection (A) and a trimmed name of the files in another colletion (B) with same index order and at the end of the workflow, get the index of input dialog in a collection A and get the same index number of the collection B.
But the result value is -1.
Can someone help me? Thank you
auto attach.zip (165.4 KB)