I am facing issue while creating a folder in sharepoint
In the destination folder I am unable to pass the value as string…how to convert the string to drive item?
First use find files /Folder activity and find the folder where you want to create and the output of find files/folders is a driveitem which can be passed here
in query - give the final folder name - folder3
in sub folder give the path from first folder till the folder you need - folder1/folder2
in find files or folders use first occurance output else you will get all matched as list of drive items and you need to sue driveitem(0) to get the first
Hope this helps
cheers
if my folder is not there then what to pass in destination folder?
If my folder is not there I will create anew folder…I am using find folders activity to check
If folder itself is not there then first you need to create a folder …even for create folder you need to specify where to create using drive item…which should get the folder where you want to create the folder
cheers
so while creating in the “Destination Folder” hoew to pass variable ? string variable is not taking
You need to use one more find folder activity to find atleast one folder where you want to create your folder…atleast one folder should be present upfront fo your to use
then the output of find files is what can be used in destination folder as drive item
cheers
bro i am performing the following steps
- find folders and files
- check if find folders and files found
- if not found create a folder
helo me in step 3
how to pass the value in “Destination Folder”?
If required folder is not found then use another find files/Folders and query for one folder above that is say you are searching for folder3 which is under folder2…if folder 3 is not found then use find files for folder2 and pass the output of second find files to create folder3
Hope this is clear
cheers
didnt get it…is there a way to convert string to drive item?
No You cannot
let me explain
say your sharepoint folders are liek this folder1/folder2/requiredfolder
- use find files for requiredfolder
- if found can proceed further with the drive item output
- if not found then on else side use find files again but now find for folder2 instead of requiredfolder
- after that use the output of step3 to create the requiredfolder and the output of create folder can be used further
cheers
not working…i tried…
Can you please show what you tried…and what is not working
may be you would have given something wrong,as we follow this almost in every project
cheers
My path is a/b/c
passing this path and checking whether “2023” exists inside C or not
if not exists trying to create folder…
first find files should be query - 2023 , subfolder a/b/c
second find files /folder query - c, subfolder a/b
Please try this
cheers
the “Results” variable how shall i code it in Destination folder?
If year folder does not exists then you need to use one more find files for the folder above it…
as per error your results variable is empty
cheers
can you send me one xaml ?