使用Powershell在查阅列中设置多个值 [英] Setting Multiple values in lookup column using Powershell
本文介绍了使用Powershell在查阅列中设置多个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有2个自定义列表.
列表1-状态-包含以下标题"数据
List1 - state - which contains "Title" data as below
California
hawaii
florida
texas
列表2-Custom1-包含一个查找列"Lookup1",该列指向标题"栏. 状态"列列表.查找列设置为允许多个值".
List 2 - Custom1 - contains a lookup column "Lookup1" which points to the "Title" column of "state" list. lookup column is set to "Allow Multiple values".
我想使用powershell更新list2-自定义1.我的意思是
I want to update the list2 - custom 1 using powershell. i mean ,
Title lookup1
Title1 texas;florida;hawaii
Titel2 california;florida
如何使用Powershell在查找列中设置多个值?
How to set multiple values in a lookup column using Powershell?
谢谢
推荐答案
Venkatzeus,
Hi Venkatzeus,
一个演示供您参考:
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
Add-Type -Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
site = "http://sp13/sites/Team02"
site="http://sp13/sites/Team02"
ctx = New-Object Microsoft.SharePoint.Client.ClientContext(
ctx = New-Object Microsoft.SharePoint.Client.ClientContext(
这篇关于使用Powershell在查阅列中设置多个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文