My goal is to get an export of all webpart properties (including custom props) along with their values, from a page (urls provided through CSV).
I am following this approach: https://www.c-sharpcorner.com/article/retrieve-webparts-from-page-using-csom-with-powershell-for-s/
I am able to access all webparts sitting on a page as I can print their ID and Name, but getting an error in:
$ctx.Load($webpart.WebPart.Properties)
$ctx.ExecuteQuery()
Error:
Exception calling "ExecuteQuery" with "0" argument(s): "Field or property "Properties" does not exist."
Appreciate your inputs / thoughts. Thanks.