Forum Discussion
Nigel_Price9911
Jul 27, 2017Iron Contributor
Add-PnPFile adding column value where column name contains a spoace
Hi I am trying to add a file to a library using Add-PnPFile. One of the columns in the content type of the file is called Business Unit and its a Taxonomy column. So I used in the Add-PnP...
Nigel_Price9911
Jul 28, 2017Iron Contributor
The documentation says you can do this :-
Managed Metadata (single value with path to term): -Values @{"MetadataField" = "CORPORATE|DEPARTMENTS|FINANCE"}
I have added this to the PnP PowerShell list of issues.
Regards
Nigel
Nigel_Price9911
Jul 28, 2017Iron Contributor
It looks as if Set-ListItem has been updated to handle Paths as well as GUIDs but Add-PnPFile has not.
@Wobba @ErwinVanHunen.
Regards
Nigel
- Manidurai MohanamariappanJul 28, 2017Iron Contributor
Yes, your correct set-pnplistitem supports both path and guid but douctment only available for set-pnplistitem and not for add-pnpfile. and i guess managed metadata path supported recently.so it will updated soon to add-pnpfile.