none
Using .net managed CSOM in bot framework V4.0 RRS feed

  • Question

  • 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?

    Friday, January 4, 2019 1:16 PM

All replies