SharePoint automatio

Hello All,

I am using SP application scope and then Get children names as shown in the below figure.

I pass the base URL name : https://xxxx.sharepoint.com/sites/xxx/ (Sample name, which works)
I pass the SharePOint folder name as " TEST", which is a folder on this site.

In side which I run a loop to print all file names. This works as expected.

However, if there is a folder inside TEST folder, named DEV . I pass the folder name as TEST/DEV, and attempt to print the files inside it, the Get Children names activity throws an error.

What can I do to resolve this?

There is a possibility of a single folder or a folder inside a folder. I need to get names of all the files.

Any inputs will be appreciated.

thank you,
Gopal

Untitled

Hi @gopai

Can you check the folder names in url of sharepoint and confirm if you are giving it correct?

As you are saying it worked for base folder it should work for the format you gave unless the name is little different

Alternately try using uriencode(sharepointfolder)

Cheers

It is correct. It works for base folder.

Otherwise, the value which goes is TEST/Subfolder , this fails - how should I change my code then?

Hi @gopai

please give like this “/Test/Subfolder”

cheers

That’s exactly what I gave - it throws an error.

But if it was just /TEST - It works flawlessly.

Hi @gopai

so even if you give a leading slash it is failing?

Also try including the document library name

cheers