cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EdwardC
Helper III
Helper III

SharePoint - Creating Folders

Hi there,

 

I'm stuck on getting my flow to work on SharePoint to create folders for all people in a group.

Flow1.png

 

I kept getting this error (I removed IDs):

{
"status": 400,
"message": "The expression \"web/GetFolderByServerRelativePath(decodedurl=’/sites/service/completed clients archive’)/AddSubFolderUsingPath(decodedurl=’Catherine Li’)\" is not valid.\r\nclientRequestId: removed \r\nserviceRequestId: removed",
 
"Microsoft.SharePoint.Client.InvalidClientQueryException"
]
 
I've checked out this link:
 
and tried this:
 
Both didn't work. 
Anyone know why?
 
Thanks in advance!
1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @EdwardC ,

 

Please pay attention to the use of symbols. If you copy Uri directly from the blog, you need to pay attention to whether the symbols conform to the specifications.

Please reconfigure the single quotes and use the single quotes in English.

6.PNG

You could copy the Uri I provided directly and change the list name and folder name.

_api/web/GetFolderByServerRelativePath(decodedurl='/lists/TestCal')/AddSubFolderUsingPath(decodedurl='foldername1')

If the following error occurs, remove the slash in front of the lists, as below:

"Server relative urls must start with SPWeb.ServerRelativeUr“

_api/web/GetFolderByServerRelativePath(decodedurl='lists/TestCal')/AddSubFolderUsingPath(decodedurl='foldername1')

Flow run history:

7.PNG

Please take a try again.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

Hi @EdwardC ,

 

Please pay attention to the use of symbols. If you copy Uri directly from the blog, you need to pay attention to whether the symbols conform to the specifications.

Please reconfigure the single quotes and use the single quotes in English.

6.PNG

You could copy the Uri I provided directly and change the list name and folder name.

_api/web/GetFolderByServerRelativePath(decodedurl='/lists/TestCal')/AddSubFolderUsingPath(decodedurl='foldername1')

If the following error occurs, remove the slash in front of the lists, as below:

"Server relative urls must start with SPWeb.ServerRelativeUr“

_api/web/GetFolderByServerRelativePath(decodedurl='lists/TestCal')/AddSubFolderUsingPath(decodedurl='foldername1')

Flow run history:

7.PNG

Please take a try again.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks! I didn't realized that tiny detail. I'll keep that in mind next time!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,439)