Yellow Messenger's document cognition feature now supports integration with SharePoint. The document cognition system is hence capable of fetching entire documents from a SharePoint site (along with all sub-sites) which includes documents uploaded to document libraries, documents created online and list attachments, convert them into Q/A format and sync at a regular interval. All documents with extension '.docx' and '.pdf' are considered.
Login to your SharePoint account and click on the site you want to access.
Click on New -> App
To register an app in SharePoint, navigate to the "New App Registration" page by replacing
'addanapp.aspx' with 'appregnew.aspx'
Fill the details in that page as per the following table and click "Create". Client Id - Click on Generate Client Secret - Click on Generate Title - Any value App Domain - localhost Redirect URI - Note : Copy the generated Client Id and Client Secret into some editor as these will be required later. In next screen, Click on OK
Now that the app is registered, we need to provide the app with required permissions so that it can access data. In order to do that, replace "settings.aspx" with "appinv.aspx".
In that page, paste the Client Id in the "App Id" text box and click on "Lookup". This will load the details of the app we registered previously In the "Permission Request XML" paste the following XML. This XML says that the app can have full control over the current web
Once that is added click on "Create".
In the next screen click on "Trust It" and this will mean that the app will have the required permissions.
Navigate to app permissions page by replacing 'settings.aspx' by 'appprincipals.aspx' The text after '@' in the app identifier is the 'tenant id' or 'realm'. This will be used in the auth api verification in step 5.
Create a new request in Postman, and change its request type to "POST".
Tenant id shown in step 4 If the API response is 200, you are done! Values used in the body of this api need to be shared. In case, integration needs to be done for multiple sites, step 1 – step 6 needs to be repeated for other sites.
Run the following commands on PowerShell. Without these steps your app won't have the required permissions.