Word Invoice typed into the ForEach field is disappearing when I am replicating the below solution on my own. Any thoughts what I should do here?
It is not a declared variable, but Invoice is used in the Assign Activity below (see snip attached). InvoiceList is an array. The instructor in the video tutorial was able to replace currentitem with Invoice. I am not able to replicate that step.
Sessions: Control Flow in Studio (v2024.10)
Training: Automation Explorer (v2024.10)
Below is the error message: “Argument ‘Value’: BC30451: ‘Invoice’ is not declared. It may be inaccessible due to its protection level. Variable ‘Value’ is missing. Please use Data Manager to recreate it.”
I took the requirement from the training session, which I was following.
"Let’s consider the following business case: we have the Invoices by Company Code folder that contains several invoices.
We want to separate the invoices into folders based on the company code specified in the file name.
To solve this scenario, we’ll create a workflow that gets all the files from the corresponding folder and loops through the files using a For Each activity. It then checks the last three characters of the file name and moves the files accordingly."
Yes, it should be for each invoice in invoices list. Have you defined the variable that will refer the each element in loop? I don’t see anything in the screenshot. Under text box for for each, nothing is there.