What are options for Azure QnA Maker to access private data? - azure

I'm creating a QnA Service using the Language Studio. I'm trying to create my source by connecting to a private URL. The wizard is failing with the message:
BadArgument
1:34 AM
Failed to extract QnAs from the source
- ExtractionFailure: Unsupported / Invalid url(s). Failed to extract Q&A from the source
I'm assuming this error is because I have to authenticate to my source. I see the documentation states that the source has to be a public URL. Is there an update to access private data? If not, I am wondering if there are any workarounds such as a code solution or exporting the content from my web page to a PDF document and creating an internal SharePoint site to contain this file. My preference would be the code solution.

Related

Copy Sharepoint online csv to datalake using Azure Data Factory

I am trying to copy CSV file from Sharepoint online to Data lake using Data Factory. I followed the below documentation.
https://learn.microsoft.com/en-us/azure/data-factory/connector-sharepoint-online-list?tabs=data-factory#copy-file-from-sharepoint-online
My pipeline looks below
I am getting errors in the copy data activity. My connection to Sharepoint is successful, and even I can download the CSV file using the base & relative URL.
Below is my error
Error code 2200
ErrorCode=HttpRequestFailedWithClientError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Http request failed with client error, status code 403 Forbidden, please check your activity settings. If you configured a baseUrl that includes path, please make sure it ends with '/'.
Request URL: https://xxxx.sharepoint.com/sites/39421875/_api/web/GetFileByServerRelativeUrl('/sites/39421875/Shared%20Documents/Test.csv')/$value.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (403) Forbidden.,Source=System,'
My base URL: https://xxx.sharepoint.com/
Relative URL: sites/39421875/_api/web/GetFileByServerRelativeUrl('/sites/39421875/Shared Documents/Test.csv')/$value
Not sure why the above error is coming? I added "/" in the base URL.
I tried multiple times, and the same error is happening. Even I tried to give a complete URL in the base URL but with no success. I followed the documentation for the Additional Header.
Can anyone advise?
The above error is mainly because of Authorization Failure. Please make sure to check whether the below permissions are granted or not.
Go to Azure Active directory -> App registration and open app -> API permission -> Add this permissions.
And also please follow the below reference: It has detailed information about app permission on specific site collection and Authorization of SharePoint.
Reference:
DataFactory: Extract data from SharePoint Online by javiBI
Access SharePoint Online using Postman by Shantha Kumar

Adding SharePoint file URLs to QnA maker via REST API not working

I am trying to create a Flow/Power Automate which will add document URLs from a SharePoint Online library to QnA maker Knowledge Base once a document is uploaded. Following actions are working -
Through QnAMaker website, I'm able to add SharePoint file URLs successfully.
I am able to call a REST API patch operation to add a public URL to QnA Maker knowledgebase.
However, when I try to add a SharePoint file URL to QnA maker via the same REST API, the link doesn't get added to the KB. But, I get a proper response (202 Accepted). I think its due to authentication prompt issues.
Any thoughts how to fix this?
Currently we support only public urls and SharePoint urls, Here is the doc for sharepoint urls (https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/add-sharepoint-datasources).
https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/reference-document-type-url
If it's internal url work around is that to somehow make a public endpoint for this url to extract the qna pairs.

Access External List from SharePoint Add-In using REST

I am using the SharePoint REST API inside an Add-In to access list data. When I query a "normal" list, I get results back. When I try to query an External List, I get a 401 error. I get the same error when I try to access the REST URL in the browser:
http://add-in-6f1ecc432fad91.myaddins.com/sites/development/_api/lists/getbytitle('TestExternalList')/items
When I try to access it outside the app it works fine:
http://sharepoint/sites/development/_api/lists/getbytitle('TestExternalList')/items
I read that you can't access External Content Types from an add-In here:
http://toddbaginski.com/blog/accessing-bcs-external-data-from-an-app-for-sharepoint-2013/
So I tried to package my BCS model as per the site and I get the following error:
The Project Item "TestBDC" cannot be deployed through a Feature in a Sandboxed Solution.
So my question is, is it possible to access an External List through an Add-In?
I am using SharePoint 2016.
Sounds like it may be a permissions issue. Do you have the BCS scope set in the app permissions?
Here's an article with info on setting up the security
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/add-in-scoped-external-content-types-in-sharepoint

How to connect to sharepoint CRM document library with onedrive api?

We have sharepoint online with site CRM.
I use OneDrive SDK for iOS.
I can connect to main document library with onedrive api. I used usefull "github example" to configure it.
resourceId: https://{tenant}.sharepoint.com/
apiEndpoint: https://{tenant}.sharepoint.com/CRM/_api/v2.0
Web URL of this library is:
https://{tenant}.sharepoint.com/CRM/Shared Documents
This configuration is fine and works OK.
I have trouble with another document libraries on this site.
Dynamics CRM creates his own document libraries. For example Acccount.
I can open this library on Web. Browser URL is:
https://{tenant}.sharepoint.com/CRM/account/Forms/AllItems.aspx
But I'm not able to connect to this CRM library.
I tried simple ask for children account:
https://{tenant}.sharepoint.com/CRM/_api/v2.0/drive/items/root/children/account
This API request returns error 404.
I also modified apiEndpoint to:
https://{tenant}.sharepoint.com/CRM/account/_api/v2.0
Result is the same. Error 404 - Not found.
Help me with correct configuration please.
To be precise, your question is regarding SharePoint, not OneDrive or CRM.
Here's a reference to the REST endpoint for SharePoint: https://msdn.microsoft.com/en-us/library/office/jj860569.aspx
If you want the items in an account library, you can use the rest api like this:
https://tenant.sharepoint.com/crm/_api/web/lists/GetByTitle('Account')/items

Unable to connect to Sharepoint in Salesforce using File-connect

I want to view my Sharepoint documnets in salesforce using "File Connect" introduced in Winter15 release for connecting to External Data source but i am facing a problem to connect to sharepoint. I have used the follwing link for Set Up Salesforce Files Connect :
http://releasenotes.docs.salesforce.com/en-us/api_cti/release-notes/rn_chatter_files_connect_setup.htm and followed the steps below :
1) First, enable Files Connect, and let users access related
external data sources
a) Enable Files Connect for your organization.
b) Let users access Files Connect data sources.
2) For cloud-based data sources, create an authentication provider, and then define the source
a) Create a SharePoint Online authentication provider.
b) Define a SharePoint Online external data source for Files Connect.
But when completing the step2 b) and clicking on Start Authentication Flow on Save as checked and saving it takes me to sharepoint login page and when logged in to sharepoint following error occurs:
The query String "redirect_uri" is missing or invalid
I have checked lots of sites but unable to correct fix this issue.If anyone has knowledge please,please share it with me as soon as possible .
My guess is that either your Salesforce auth provider is not correctly configured or that your SharePoint Online app is not correctly configured.
I would recommend opening a ticket with the Salesforce support team so that they have a look at your configuration.
am also working on this
i faced an issue
when woking with external data source:
can u let me know what is to be filled in this field "Authentication Provider"--which is a look up field when i click on this nothing appears.
and my authentication protcol is Oauth.

Resources