I need help appending sequential numbers (e.g., -1, -2, -3) to filenames in a backend workflow that processes images from a Multi-File Uploader. I’m using Schedule API Workflow on a List, but I can’t find a way to append a number indicating each image’s position in the list to the filename.
Has anyone done this before or know how to add sequential numbering when renaming files? There doesn’t seem to be a way to access the index number of the file in the list.
For each loop add +1 to the file name
Search this forum for recursive flows
@cmarchan how do i that on the backend? are you saying 1. there is no way to access the index of the file in the uploader and 2. if that’s the case then add +1 to a number that I send back from the frontend? what exaclty are you saying? i
@cmarchan I know about recursive flows. Can I not send the index of the file back to the backend?
are you saying to run the backend workflow on a list or each image individually? I don’t think there’s a way to run it on each individaully because it keeps coming back to the front end and there’s no way to keep it going recursively. So if i run it on a list, is there a way to advance an index number by 1 each time it runs? i can’t find a way
but i need -2, -3, -4, etc and so on. If there’s no custom states in the backend, and i can’t access the index number of the file, how would i get it to to go to -2, -3, and so on in the backend? it has no reference other than the start number “1.”
Recursion is done on a list
It is not clear if you want to name them all or some or one …?
ok, on a list, i need to add -1, -2, -3, -4, and so on. If there is no index number to reference, how do I advance the number?
or I guess i should say, the index is 1, that is passed initially to start, so how do i advance it each time?
Each time is index + 1 … so the index grows by 1 for each loop
And add a brake to your recursive flow when index is larger than the total count of the list
I was hoping to get the index # of the file itself but it seems that’s not possible so I’m taking you as saying just add -1, -2, -3, etc for each run but that doesn’t seem to be possible either because in the backend I can’t advance the initial index number. take a look at these screenshots. do you see any where i can advance the index number or append -2, -3, etc…