Javascript 使用PNP/SP在代码中进行SharePoint查找字段多选

Javascript 使用PNP/SP在代码中进行SharePoint查找字段多选,javascript,typescript,spfx,Javascript,Typescript,Spfx,我正在尝试创建一个允许多个选择的查找字段: ler.list.fields.inBatch(batchCreate).createFieldAsXml(`<Field Name="${strings.Committees}" DisplayName="${strings.Committees}" Type="Lookup" List="{${lookupID}}" ShowField="Title" AllowMultipleVaues="true"/>`); ler.list

我正在尝试创建一个允许多个选择的查找字段:

ler.list.fields.inBatch(batchCreate).createFieldAsXml(`<Field Name="${strings.Committees}" DisplayName="${strings.Committees}" Type="Lookup" List="{${lookupID}}" ShowField="Title" AllowMultipleVaues="true"/>`);  
ler.list.fields.inBatch(batchCreate.createFieldAsXml(``);
使用
Type=“LookupMulti”
而不是
AllowMultipleVaues=“TRUE”
使用
Mult=“TRUE”



成功了,谢谢!谢谢你的网站,这会派上用场的。
<Field Name="${strings.Committees}" DisplayName="${strings.Committees}" Type="LookupMulti" List="{${lookupID}}" ShowField="Title" Mult="TRUE" />