Send files dynamically to a dynamic folder in sharepoint (HELP)

Hello everyone, I need to send several items using the for each file in folder to a dynamic folder.

The folders are named after months, so if the month is July I should send the files to the July folder.

strmonth = july
strmonth2 = 07

07-July

So in August the name of the month will change and I should send it to the folder

08-August

Hi @gustavo.souza

Try this

CurrentFile.FullName.ToString
StrMonth2.ToString+“-”+StrMonth.ToString

If it is not working send the screen shot of error

Regards,

I tried this but it didn’t work

@gustavo.souza

Can you show the error

1 Like

In files: Error ERROR Validation Error BC30311: Value of type ‘String’ cannot be converted to ‘O365DriveRemoteItem’. The selected value is incompatible with the property type. Main.xaml

in Destination folder: Error ERROR Validation Error BC36754: ‘String’ cannot be converted to ‘IEnumerable(Of IResource)’ because ‘Char’ is not derived from ‘IResource’, as required for the ‘Out’ generic parameter ‘T’ in ‘Interface IEnumerable(Of Out T)’. The selected value is incompatible with the property type. Main.xaml

@gustavo.souza

For the destination folder field you need to pass a drive item…which you would get from using find files activity…first use a find files activity and find the required folder where to upload on your sharepoint and the output of find files is to be passed into upload files destination field

Hope this helps

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.