I'm working on a SharePoint online environment and migrated classic sharepoint page to modern site using pnp powershell script. I have around 2000 site pages.

I have yammer feed in classic page which is not migrated during migration.

Is there any way to migrate yammer feed from classic page to modern page as conversation feed webpart and set Topic id, search source dynamically using pnp powershell

I am trying below pnp powershell script :

$jsonObj = '{​​​​​​"type":"Topic","showPublisher":true,"id":"Yammer_x0020_Topic_x0020_ID"}​​​​​​'

Add-PnPClientSideWebPart -Page "Test.aspx" -DefaultWebPartType YammerFullFeed -WebPartProperties $jsonObj -Section 1 -Column 1 -Order 1

Please click here to see Conversation webpart layout


1 Answer 1


I have tried with this link and solve my problem


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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