SharePoint - Troubleshooting

Before continuing: if the SharePoint widget suddenly stopped working and/or this error shows up:

It’s very likely that the Client Secret token has expired. This happens every year due to Microsofts policy. We recommend to set a reminder in your calendar to create a new Client ID / Client Secret a month prior, to prevent down time.

How to get a new Client ID and Secret

Because renewing an existing Client is not possible you will have to create a new one and then use those credentials within GoBright View. You just have to update the credentials in the existing slide(s) that contain the SharePoint widget.

For a step by step guide, please refer to this article: SharePoint News Widget

In-depth troubleshooting

Setting up the SharePoint Widget can be challenging. Following the SharePoint Online article, this technical guide describes ways to display possible error messages from SharePoint that may help troubleshooting. For this we are using the free Postman app.

  1. Get the Client ID, Client Secret, Tenant ID, SharePoint Domain and optionally the SharePoint Site ready
  2. Open GoBright View and navigate to Management > Widgets & DataSources
  3. Open the SharePoint News DataSource
  4. Go to the Settings tab of the DataSource
  5. Fill in the parameters
  6. Go to the Editor tab of the DataSource

    hc-sharepoint-troubleshoot.png

  7. Hit the F12 button to open Dev Tools
  8. In Dev Tools, go to the Network tab
  9. Clear the output
  10. Make sure the record button is red (so next requests will be recorded)
  11. Click the Play button to run the DataSource
  12. In Dev Tools, scroll to the bottom of the Name panel

    hc-sharepoint-troubleshoot-step7%2B.png

There are two options:

  1. There is a red ‘Load’ request
  2. There is no red request

If there is a red ‘Load’ request:

  1. In Dev tools, scroll to the bottom of the Name panel
  2. Click the red ‘Load’ request
  3. Open the Payload tab
  4. Open the Headers, an Authorization header should be visible (bearer …)
  5. Copy the URL value

    mceclip0.png

  6. Open Postman
  7. Create a new request / tab
  8. Make sure this is a GET request and paste the URL from Dev Tools
  9. Still in Postman, go to the Headers tab
    1. In the Key field, type Authorization (without any quotes)
    2. In the Value field: Paste the entire value from Dev Tools, including the word bearer
  10. Click Send
  11. In the output below there should be more information from SharePoint. This information should point you in the right direction to further troubleshoot the issue.

    red-request-postman.png

If there is no red request:

  1. In Dev tools, scroll to the bottom of the Name panel
  2. Select the last Load request
  3. Open the Payload tab
  4. Open the Headers, here an Authorization header should be visible (bearer …)
  5. Copy the URL value

    no-red-request-devtools.png

  6. Open Postman
  7. Create a new request / tab
  8. Make sure this is a GET request and paste the URL from Dev Tools
  9. Still in Postman, go to the Headers tab
    1. In the Key field, type Authorization (without any quotes)
    2. In the Value field: Paste the entire value from Dev Tools, including the word bearer
  10. Click Send
  11. In the output below there should be more information from SharePoint. This information should point you in the right direction to further troubleshoot the issue.

    red-request-postman.png

This article comes from the Help Center of GoBright.

View original article

FAQ

Ask us anything! Find the answers to the most frequently asked questions here.

Browse the FAQs

Help Center

A goldmine for all IT and Facility Managers. Dive into the technical stuff concerning our products and solutions.

Visit the Help Center

Newsletter

Wanna stay informed of all developments within the smart office and our new features? Subscribe now.

Subscribe now