Open Edward-Adamson opened 5 years ago
Bury me, If I add Mult="TRUE" to the Xml it now works!
This blog showed me this: https://techenthusiast.in/2018/06/09/pnp-powershell-working-with-different-types-of-field-using-add-pnpfieldfromxml/
However there is still no way of creating it from Add-PnPField, is this intentional?
Notice: many issues / bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:
Apply-SPOProvisioningTemplate
orGet-SPOProvisioningTemplate
? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/officedev/PnP-Sites-Core/issues.Reporting an Issue or Missing Feature
Trying to add a Multi User Field. When I try add the Field through Add-PnPField only recognises User as a type, UserMulti does not exist. When I try add the Field through Add-PnPFieldFromXml using Type="UserMulti"the Field is created as a Single user column
Expected behavior
I expect the column to be created as a multi user field
Actual behavior
Column is created as single use field![image](https://user-images.githubusercontent.com/32546798/46357414-b3c31e80-c65c-11e8-8b9b-85a8d4077099.png)
Steps to reproduce behavior
My Xml:
$xml = '<Field Type="UserMulti" Name="FLD_22" DisplayName="Fld 22" UserSelectionMode="PeopleOnly" />'
And query:Add-PnPFieldFromXml -List $listId -FieldXml $xml
https://github.com/SharePoint/PnP-Sites-Core/issues/1023#issuecomment-277198763 Suggests that this should work?
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
3.1.1809.0
How did you install the PnP-PowerShell Cmdlets?