Hello
We have a custom connector which is calling a sitePages Graph API endpoint (/beta/sites/tenant.sharepoint.com,211cf7bf-caf4-4ecd-91b0-c30974aa2e37,41bf8ea8-3d19-4364-af8e-d3aa72302289/pages) https://docs.microsoft.com/en-us/graph/api/sitepage-create?view=graph-rest-beta&tabs=http
When we use Test screen by passing necessary payload, pages gets seccesfully created in sitecollection1. AD App used for this has been give Sites.ReadWrite.All access (Both applicaiton and Delegate permission)
However, when same connector is used against another siteCollection2 from same tenant we are getting below ItemNotFound exception
{
"error": {
"code": "itemNotFound",
"message": "Item not found",
"innerError": {
"date": "2021-08-31T07:05:27",
"request-id": "00f208a4-bcd4-447f-8299-62aadd8a8ab5",
"client-request-id": "00f208a4-bcd4-447f-8299-62aadd8a8ab5"
}
}
}
I can create page succesfully at sitecolleciton2 using graph explorer.
Payload being passed is below,
{
"name": "test.aspx",
"title": "defaulttext",
"publishingState": {
"level": "checkout",
"versionId": "1.1"
},
"webParts": [
{
"type": "rte",
"data": {
"innerHTML": "HTMLCOntent"
}
}
]
}
I did use Network tracer to verify tokens and they appear to be same. Its really strage why it would work against one and not other. Account being used on test screen has Site collection admin access on both sites
does it work with global admin account
I am global admin on this tenant.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.