Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Interchange values in "people and group" fields

$
0
0

Hi,

I have list with two people and group fields. How I can interchange values between these "people and group" columns effectively without loosing information?

String ValueA = item["Field1"];

item["Field1"] = item["Field2"];

item["Field2"] =  ValueA;

Is not working for. Should I use SPFieldUserValue or SPFieldUserValueCollection? Could anyone provide me better logic with example

Thanks in advance

HR


Viewing all articles
Browse latest Browse all 17574

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>