Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sjkp/office-addin-sharepoint-document-search
https://github.com/sjkp/office-addin-sharepoint-document-search
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sjkp/office-addin-sharepoint-document-search
- Owner: sjkp
- Created: 2015-10-14T11:31:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-14T11:34:32.000Z (about 9 years ago)
- Last Synced: 2024-04-15T02:56:03.183Z (7 months ago)
- Language: CSS
- Size: 227 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Sample Office Add-in using ADAL JS and CORS generated using the Yeoman Office Generator
This sample illustrates how to extend an Office Add-in generated using the [Yeoman Office Generator](https://github.com/OfficeDev/generator-office) to connect with Office 365 using ADAL JS and CORS. This sample add-in is a Task Pane Add-in that allows you to search for documents in SharePoint Online directly from Office client applications.
This sample is based on the documentation provided with the Office Generator repo at [https://github.com/OfficeDev/generator-office/blob/master/docs/adal-config.md](https://github.com/OfficeDev/generator-office/blob/master/docs/adal-config.md).
## Running this sample
1. Clone this repository
1. Register a new web application in your Azure Active Directory
1. Copy the application ID
1. Grant the application the following **Office 365 SharePoint Online** permissions: **Run search queries as a user** and **Read items in all site collections**
1. In the application's manifest enable implicit OAuth flow
1. In the `app/app.config.js` file change the value of the `tenantName` variable to your tenant and the `appId` to the ID of your application as registered in the Azure Active Directory
1. Upload the `manifest.xml` file to the **Apps for Office** in your App Catalog (located at `https://yourtenant.sharepoint.com/sites/apps/_layouts/15/start.aspx#/AgaveCatalog/Forms/AllItems.aspx`)
1. Open a Word/PowerPoint/Excel/Project document and insert the add-in
1. Search for a document. The top 5 documents matching your query will be displayed in the Task pane from where you can open them to view their contents