SharePoint 2010: How do I set the value multi select lookup column?

A seed data script I was writing required a multi value selection lookup column to be pre populated. Setting a single value is simple - use <Id>;#<Text> - and all is well. But how do you set multiple values?

The solution is just as simple; use ;# as the delimiter between items. For example, you could set your column with the following:

<ID1>;#<Text1>;#<ID2>;#<Text2>

Semi-colon Hash (;#) is the delimiter of choice.

Comments

Popular posts from this blog

SharePoint 2013: Error updating managed account credentials

Error deploying Nintex workflow: An item with the same key has already been added