The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Please note that we're not Microsoft support, this is a user-to-user support forum. Moderators have no backend access and cannot directly intervene in Microsoft products. We provide only technical guidance and best-practice recommendations based on reported issues.
Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.
Hi @DSR Automation First, may I ask which endpoint do you use to create the folder? I found this endpoint, can you try to run this:
POST /sites/{site-id}/drive/items/{parent-item-id}/children
{
"name": "######",
"folder": { },
"@microsoft.graph.conflictBehavior": "rename"
}
This will create a folder with name "#####". The web URL will be like this ".../Documents/%23%23%23%23".
If you must keep deep-path creation, create the immediate parent first (one short PATCH), then do the deep PATCH for the remaining levels.
Additionally, you can consider using SharePoint REST API using the ResourcePath / decodedUrl approach:
POST /_api/web/folders/AddUsingPath(decodedurl='...') or GetFolderByServerRelativePath(decodedurl=...).
These APIs are explicitly designed to work with # and % when you pass a decoded path string.
If you want to investigate this further, please contact Microsoft Graph support via Microsoft Graph | Support
As a forum moderator, I do not have access to intervene in Microsoft products feature and functionality. Thanks for your understanding.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.