creating a file in sharepoint in crm user context RRS feed

  • Question

  • I am trying to upload a file into sharepoint using plugin.

    How to pass the credentials to sharepoint client context to get the file to be created under sharepoint folder with crm user as admin?

    ClientContext clientContext = new ClientContext(SPSiteURL);
    clientContext.Credentials = System.Net.CredentialCache.DefaultCredentials;
    clientContext.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;

    I have tried above tried both abobe options, but not able to create the file with crm user.

    Has anyone having idea?

    Thanks in advance

    Tuesday, September 8, 2015 11:10 AM