cancel
Showing results for 
Search instead for 
Did you mean: 

MS Graph - Sharepoint Error

Alexander.Duff
Level 4
Afternoon,

We're attempting to connect to a Sharepoint site within blueprism using the MS Graph assett, however - we're coming across this error message:

Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 404
HTTP Response Content: {"error":{"code":"itemNotFound","message":"Requested site could not be found","innerError":{"date":"2021-07-08T13:03:33"

I believe the SideID is correct as we used /_api/web?$select=id at the end of our homepage URL for the sharepoint site which generated a JSON. The id taken was after ""Edm.Guid">"Insert ID HERE"

We then got the list ID by removing the %7 either side of the list settings url. 

Any help would be appreciated as it took some time to authorise out permissions within azure just to stop it from being "Forbidden"

Thanks,


------------------------------
Alex Duff
RPA Developer
Lowell Financial
Europe/London
------------------------------
2 REPLIES 2

ewilson
Staff
Staff
Hi @Alex Duff,

SharePoint SiteId's can be the simple domain version (ex. "bluprism.sharepoint.com") or their actual underlying not-at-all-friendly ID (ex.
"blueprism.sharepoint.com,c516a87b-1234-48f5-b44e-4743c72a1234,abc12345-2848-4545-a104-35fb8a2396a2").

You can get the actual ID for your site by invoking the root endpoint at this URI: https://graph.microsoft.com/v1.0/sites/root. Additionally, you can grab info about any subsites by invoking ​https://graph.microsoft.com/v1.0/sites/root/sites

Cheers,



------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

FWIW - Those URIs should map to the Get Root Site and Get Subsites actions.

Cheers,

------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------