Using .net managed CSOM in bot framework V4.0

  • Thread starter Thread starter AkashKale
  • Start date Start date
A

AkashKale

Guest
Hi All,

We are trying to get information from a SharePoint Online site through chatbot developed using Microsoft Bot Framework V4.0.


The statement clientContext.ExecuteQueryAsync() returns 400 Bad Request everytime and no information could be retrieved.


Here is the code we are using:


ClientContext clientContext = new ClientContext(siteURL);

clientContext.Credentials = new SharePointOnlineCredentials(AdminUserName, GetCredentials());

Web web = clientContext.Web;

clientContext.Load(web);

clientContext.ExecuteQueryAsync();



Could anyone help in this matter?

Continue reading...
 
Back
Top