I'm attempting to create a sharepoint page programatically by adding an image gallery web part. How do I access the properties of that web part? I don't see the documentation anywhere for Image Gallery like I do for the Image web part. Custom Properties for Image Web Part

  • Are you trying to add the webpart to a classic webpart page, or a modern page? Aug 9, 2017 at 15:27
  • I am adding it to a modern page. Aug 9, 2017 at 15:29

1 Answer 1


if you go to the hosted workbench (_layouts/15/workbench.aspx) and configure the canvas how you want, select the "Web Part Data" button on the top left. That will pop up a window with the serialization format for both modern and classic. The value in the "Modern Pages" tab is the value that should be stored in the canvas field.

Your Answer

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

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