I have a variable that contains column-value (terms) from a page/list

 $terms = $page.FieldValues["Terms"];

where "$page" is a variable containing the site page.

I get another site page as a list item:

$transformedItem = Get-PnPFile -Url $myUrl -AsListItem

The above list item has a column "Keyword". How do I populate that column "keyword" with the variable "$terms"?

  • What value do you want to put into "Keyword" from $terms ?? because $terms has many fieldvalues. – Karthik Jaganathan Dec 12 '19 at 10:18

You could update the item via the following pnp cmdlets: Set-PnPListItem



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.