We are using SharePoint Online. I have some document library with Word documents. I created some logic where I convert a Word document to PDF. I would like to write some logic in powershell to clone the metadata of the Word document and set on the PDF document. How to this? Is this for example possible with pnp powershell?
Something like this:
#get metadata of documentA $documentA = Get-PnPListItem -List "TestKH" -Id 1 -Fields "Title","GUID","DocumentStatus" #set metadata of documentB Set-PnPListItem -List "TestKH" -Identity 2 -Values $documentA.FieldValues