Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Sharepoint integration

$
0
0

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;
                        SP.File file = list.RootFolder.Files.Add(fileinfo);
                        file.ListItemAllFields["DocType"] = "Favourites";
                      //  list.Update();
                        file.ListItemAllFields.Update();
                        spClientContext.ExecuteQuery();
Thanks,
Nagarajan

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images