Getting issues after Microsoft SharePoint Online Spoke is configured

kiran115
Tera Contributor

I have done the spoke setup and tested the connection after creating the credentials. Below is Get OAuth token success message.

 

kiran115_0-1689267234846.png

 

When I test with the Get List Action from the flow, am getting the 404 error like below.

kiran115_1-1689267386711.png

 

If i use Look up sites action am getting Invalid token as below.

kiran115_2-1689268717108.png

 

Can anyone help me what is happening and what is the mistake?

 

 

 

 

9 REPLIES 9

Same issue here. Did anyone find a solution?

Hi all, in my case the issue came from missing site permissions.

In the past SharePoint only supported the setting "Sites.FullControl.All". There is a new and safer option "Sites.Selected". But if you use that, you also need to grant specific write access by running the following command in PowerShell:

Grant-PnPAzureADAppSitePermission -AppId '{AppID}' -DisplayName '{AppName}' -Site 'https://{TenantName}.sharepoint.com/sites/{SiteName}' -Permissions Write

SnowDesign03
Tera Contributor

Same error here. OAuth token successful. But running test actions and getting Invalid authorization code. Any idea?

@Paul Kunze I have all the required permissions but still getting the same error. And further couldn't get the New access token using postman. Postman Error states 'HTTP Error 400. The request URL is invalid' 

SnowDesign03
Tera Contributor

ServiceNow support was able to help me get this issue cleared. There was an issue with the certificate uploaded