Loop through folder with sub-folders and upload all files - How to

One second, is out_List of file an argument type or variable type?
In Locals you cant see the value of arguments :frowning:

Yeah , i did some changes wait a min i will share the screen shot… :slight_smile:

Sure,
Just tested on my local and here is what the next workflow start state looks like:

I added one more local variable and passed it to the edit Arguments
The variable name is - out_listofFiles_variable


Now i am able to see that there is no null , rather its holding the values


Now i am bale to invoke the workflow file

Regards
Sonika

Great :slight_smile:

One thing, I dont think you will require out_ListofFiles in that case just one local variable should do the job in your case out_ListofFiles_variable

@nadim.warsi

now i was trying to send this complete variable in the file- Pdfmerge. for the -Typeinto activity as below, highligted in yellow color
[NOTE: initially i was sending the path of folder unzip]

but i got the follwowing error

image

initally it was like this below
image

My requirement is that - it should open all the present inside the array variable - in_Listof_Files…

@nadim.warsi

i was telling here in the beginning in one of the post - In PDFSam -
i have to click on Add - {This one we have to do}
then it will open all the files from the path we send.
Then we have to click on - Open

As below
In my application i have to click on - Add

image

Add opens the following window…


image.png1366x768 111 KB

so now i have to click on each folder , which r present inside the Unzip , as in above screenshot.

after click the folder it opens the files present inside each folder. The folder consists of the following files
image

Main thing is how shall i open all these files from the - argument ???
Can you please help me out with this…

Regards
Sonika

In the next workflow are you doing a for each?

doing this will let you put each path in add option text box.

there use item

@nadim.warsi

But if i add the For each - to loop through all the files then every time i should not allow the window to open.

I mean i have to add all the files to the to the -" open window " and then the Open should be clicked as below:
image

I did it as per your suggestion…
here is the screen shot
image

from this loop its taking only one file and adding it to the pdfsam as below:

then it will stop running

Regards
Sonika

@nadim.warsi

i also tried other way.
Where i had add only “Type into” activity as in the following in for each loop
image
here in the out put in -type into activity it typed all the file names and it showed only one last file …

and took out the - open and kept it in the other attach window
image

Please help me out with this issue…

Sonika

Best way, send me this xaml please? Ill have a look and send you the screeshots

@nadim.warsi

Sure , please find the .xaml files.
pdfMerge -17-10-18.xaml (23.0 KB)

Emails 15-10-18.xaml (18.1 KB)

also i am attaching the screenshots of the - Pdfmerge.

image

image
image

image

Regards,
Sonika

One small twist.:wink:

You need to add the files which are all there using add, then type-into then click Ok.
Repeat if for all the files you have in the list and then you click on merge

This way you will have all you files and then you merge them.

So, just move the add button into the for, after that the type-into and then Ok.
Hence all files are added

Then click on merge

I have edit the logic as you were using different attach windows all the time whereas we can do like above.
Have a look

pdfMerge -17-10-18.xaml (20.6 KB)(if this opens for you)

Your Email workflow looks good :ok_hand:

@nadim.warsi

Once again i am not able to open the .xaml
Version conflict… :frowning:

Can you please share screen shot… :neutral_face:

Regards
Sonika

Shared on the reply above that :slight_smile:
sharing again
image

@nadim.warsi

Thanks for the screen shot again.
I did the same
image
image

But i am getting error:
image

OK , got it
Can you use a attach window for the Add button,
Just indicate the main window and you should be good. :slight_smile:

1 Like

@nadim.warsi

Yeah i added it, and yes its working :slight_smile:
There are certain other things which i need to add…

Thank you
Sonika

Great!!! :slight_smile:
Fulfills you initial requirement? then perfect :ok_hand:

[Please right mark answer as solution: helps others if they have the same issue ]