pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Question:Add-PnPFieldFromXml #1470

Open LucasOvejero opened 6 years ago

LucasOvejero commented 6 years ago

Which version of the PnP-PowerShell Cmdlets are you using?

Hello, i had problem using the command Add-PnPFieldFromXml, the field was created, but don't appear on the default view. i don't know if i'm missing something or i'm doing something wrong xml field: call: Add-PnPFieldFromXml -FieldXml $campo.OuterXml -List $list.Name

reinoutD commented 5 years ago

I Have the same problem, even if i add Viewable="TRUE" in the XML it doesnt appear on the default view. Example: $FieldXML = '<Field Type="DateTime" DisplayName="Expected order date" Required="FALSE" EnforceUniqueValues="FALSE" Indexed="FALSE" Format="DateOnly" Group="Custom Columns" FriendlyDisplayFormat="Disabled" ID="{' + $uniqueID + '}" StaticName="ExpectedOrdeDate" Name="ExpectedOrdeDate" Viewable="TRUE" ></Field>'