Hi Techs,
I have tried integrate with sharepoint from crm 2013 and I created subsite and list. but I can't upload image in that list. I have the below error when I tried through plugin. Please provide the solution.
Error:
List 'list name' does not exist at site with URL 'https://sharepoint site'.
Site URL:
//the uri for our SharePoint Site Collection where we'll add our Subsites
Uri uri = new Uri(@"https://sharepoint.******.com");
code for upload:
FileCreationInformation fileinfo = new FileCreationInformation();
fileinfo.ContentStream = mStream;
fileinfo.Overwrite = true;
fileinfo.Url = "https://sharepoint.**********.com/24114172-0204-e511-93fa-f8b156b79c0b/HomeListing/pbmodelIMG1410550298.jpg";
SP.File file = list.RootFolder.Files.Add(fileinfo);
file.ListItemAllFields["DocType"] = "Favourites";
// list.Update();
file.ListItemAllFields.Update();
spClientContext.ExecuteQuery();
Thanks,
Nagarajan









