REST API INTEGRATION WITH SHAREPOINT Online (Without OOB SPOKE)

GB14
Kilo Patron

We’re working on integrating ServiceNow with a SharePoint Online list (without using the SharePoint spoke). Has anyone successfully done this and can share the steps or point us in the right direction?

 

We’re able to obtain the OAuth token successfully, but we’re running into issues when trying to create or update a list item.

 

The error from the logs is:

 

*** Script: SharePoint API call failed. Status: 401 Response: {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"}}}: no thrown error

 

Any guidance would be appreciated.

12 REPLIES 12

Thanks @SumanthDosapati 

I will check the link and see if we are missing anything. we have verified a few times and team has confirmed the access is setup correctly but I will go over the document again and share an update. 

Let us know here on your status so it might help others with similar issue.

 

Regards,
Sumanth

 

aislingo
Tera Contributor

@GB14 did you ever get this working?