Create Folder action failing while Get Site succeeds in SharePoint Online Spoke

Daniel142
Tera Expert

Hi Team,

 

I’m currently configuring the SharePoint Online integration in ServiceNow using the SharePoint Online spoke and I found a behavior that I would like to confirm.


Current behavior

The connection itself appears to be working correctly because actions such as Get Site are returning successful responses.

Daniel142_0-1779481731392.png

 

However, when trying to use the Create Folder action, the step fails.


Error received

The response body returned is:

{
  "error": {
    "code": "BadRequest",
    "message": "Resource not found for the segment '_api'.",
    "innerError": {
      "date": "2026-05-18T16:31:35",
      "request-id": "xxxxxxxx",
      "client-request-id": "xxxxxxxx"
    }
  }
}

Daniel142_2-1779481914153.png

 

Additional details

  • The SharePoint connection test is successful.
  • OAuth authentication appears to be working correctly.
  • Get Site action works without issue.
  • The failure only happens with Create Folder.
  • We are using Microsoft Graph-based authentication.

I would like to confirm:

  1. Is the Create Folder action expecting a different Site URL format?
  2. Is there any known limitation when using Graph authentication with this action?
  3. Should the folder path be relative to the document library root?
  4. Is additional configuration required for the Document Library parameter?

Additional context:

  • Site: /sites/TestSP
  • Library: Documentos compartidos
  • Target folder example: Folder1

 

Thank you in advance for your support!

0 REPLIES 0