This should be a simple process. We are generating documents in a SharePoint library and walking through a multistep approval process - All Good. What I need is for the document, when marked as Approved, to be converted to PDF and copied to OneDrive for Business in the same folder hierarchy.
For example - library at https://sharepointsite.com/sites/sitename/Shared%20Documents/Project A/Report/ has a report that, when approved should be copied to https://ondrivefolderstructure/Project A/Report/.
Now the triggering, copying and converting I can do.
How do I get the dynamic folder subpath - /Project A/Report/ from the SharePoint file and replicate it into OneDrive? There are many projects and many subfolders but the struture should be replicated in two locations. Where is the string manipulation subset of Flow?
Thoughts?
OneDayAtATime
Solved! Go to Solution.
Hi @Anonymous,
I have made a test on my side and would offer you the method refer to the path.
Please refer to screenshot below to create the flow:
The expression in the Compose 2 as below:
first(skip(split(outputs('Compose'),first(split(outputs('Compose'),'/'))),1))
Note:
1.Choose the "Folder Path" dynamic content of the trigger in the Compose field.
2.The expression in the Compose 2 as below:
first(skip(split(outputs('Compose'),first(split(outputs('Compose'),'/'))),1))
When a file is created in the link https://sharepointsite.com/sites/sitename/Shared%20Documents/Project A/Report/, the flow would run successfully as below:
Please let me know if your problem could be solved.
Best regards,
Alice
Hi @Anonymous,
I have made a test on my side and would offer you the method refer to the path.
Please refer to screenshot below to create the flow:
The expression in the Compose 2 as below:
first(skip(split(outputs('Compose'),first(split(outputs('Compose'),'/'))),1))
Note:
1.Choose the "Folder Path" dynamic content of the trigger in the Compose field.
2.The expression in the Compose 2 as below:
first(skip(split(outputs('Compose'),first(split(outputs('Compose'),'/'))),1))
When a file is created in the link https://sharepointsite.com/sites/sitename/Shared%20Documents/Project A/Report/, the flow would run successfully as below:
Please let me know if your problem could be solved.
Best regards,
Alice
Alice
Many thanks for your efforts. I haven't had a chance to check this out but it looks perfectly reasonable. Thank you.
it's great idea and it's work with me thank you for this tip,
but it's get only the new file was created at SP what if :
1-i want weekly take backup from SP and s
2- create new folder in onedrive named by date ex"23072018"
3- put all the folders with same order-from SP- inside the folder in number 2
how i can do that i tried many formation but it dosnt work
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
26 | |
26 | |
23 | |
13 | |
10 |
User | Count |
---|---|
62 | |
50 | |
30 | |
29 | |
24 |