sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

How to "switch to Workbench hosted in SharePoint"?

Open haugan opened this issue 7 years ago • 3 comments

Step 4 says: "Switch to the Workbench hosted in SharePoint. Refresh the page and add the HelloWorld web part. You should see lists returned from the current site." It's probably something I've overlooked, but can't seem to find how to do this. All I got is the local Workbench, hosted after running 'gulp serve'.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

haugan avatar Dec 20 '18 08:12 haugan

This was shown in a previous doc on the first "getting started" page here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part#preview-the-web-part-in-sharepoint

The hosted workbench is found in every SharePoint Online site. Navigate to a SharePoint Online site & add to the end of the URL /_layouts/workbench.aspx. Assuming you are still running the local web server from executing gulp serve, you will be able to test your web part in the hosted workbench in SharePoint Online.

andrewconnell avatar Dec 20 '18 10:12 andrewconnell

Looks like it works on-prem too :) http://sp2019.mydomain.net/sites/TroyTest/_layouts/15/workbench.aspx

TroyHostetter avatar Mar 06 '19 16:03 TroyHostetter

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 25 '20 18:01 msft-github-bot