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.
When the user input the 1070…it matches with only one pdf right?? After that you mentioned “Ive to get all the files from the pdf folder and clean the name” I didn’t get this part…can you explain? so that we can assist…