SharePoint Client Side Object Model (CSOM)

 

 

How to copy list items with people and group columns between site collections using CSOMGP0|#81c8ff8d-50a8-4de2-84e7-c5e478b09017;L0|#081c8ff8d-50a8-4de2-84e7-c5e478b09017|CSCOM;GTSet|#68e31ecf-dbe9-45e0-8a3c-fc6bd6ad0ce6;GPP|#416f8251-f4d5-40dc-be28-d7400d10de85;GPP|#74f9ea2a-fcec-489f-9ca4-da563b559213 Content from people and group columns cannot just be copied over to the new site collection, as the users will have different lookup ids in each site collection. This article shows how to do this correctly using the CSOM
SharePoint Office App Model SamplesGP0|#81c8ff8d-50a8-4de2-84e7-c5e478b09017;L0|#081c8ff8d-50a8-4de2-84e7-c5e478b09017|CSCOM;GTSet|#68e31ecf-dbe9-45e0-8a3c-fc6bd6ad0ce6;GPP|#416f8251-f4d5-40dc-be28-d7400d10de85;GPP|#74f9ea2a-fcec-489f-9ca4-da563b559213;GP0|#afeedca3-6eba-4b1c-9465-f1b1f76d3e3d;L0|#0afeedca3-6eba-4b1c-9465-f1b1f76d3e3d|Apps;GPP|#a5205c2f-ad79-446f-8d9e-afd0eeecf427 ​Apps scenarios and reference code examples from Microsoft
SharePoint user profile properties now writable with CSOMGP0|#81c8ff8d-50a8-4de2-84e7-c5e478b09017;L0|#081c8ff8d-50a8-4de2-84e7-c5e478b09017|CSCOM;GTSet|#68e31ecf-dbe9-45e0-8a3c-fc6bd6ad0ce6;GPP|#416f8251-f4d5-40dc-be28-d7400d10de85;GPP|#74f9ea2a-fcec-489f-9ca4-da563b559213;GP0|#b5ca10cd-3b9e-486c-9290-c7a8c5cd6740;L0|#0b5ca10cd-3b9e-486c-9290-c7a8c5cd6740|User Profile Service;GPP|#aa2447c2-0307-4407-bd59-fedab9e12903 ​Native support for updating user profile properties with CSOM in Office 365is included in the latest version of the CSOM package (3rd of Sep 2014 or newer).