Cli-microsoft365: Question webpartData

Created on 13 Jan 2020  路  6Comments  路  Source: pnp/cli-microsoft365

Description

Question: Is it possible to get the webpartData for use in 'apppage add' and 'apppage set' commands? I know I can get the data manually but is their a command for dynamically get it?

Steps to reproduce

apppage set

Expected result

can run without specifying webPartData or have option to get webpartData at runtime.

needs design question waiting on response

Most helpful comment

@waldekmastykarz I suppose the web parts have already been deployed. Saves some time maybe not to have to pull out the data and push it into this. Just convenience I guess.

All 6 comments

Not at the moment, no. Sorry. It would be a good addition to have in the CLI though. Thank you for bringing it up.

Just to better understand what you're trying to achieve @gbminnock: typically, when provisioning app pages, you create them upfront with the web part data that you know. What would be the scenario that would require you to retrieve web part info dynamically?

@waldekmastykarz I suppose the web parts have already been deployed. Saves some time maybe not to have to pull out the data and push it into this. Just convenience I guess.

Thanks for clarifying @gbminnock. Let me see if we could come up with something that would help.

After looking a bit more into this: webPartData is information about a web part placed on a page and contains some additional information that isn't a part of the web part manifest, like its width, height, etc. Would you like to retrieve this block for a web part that is placed on a page or would you rather have us generate it for any of the web parts available in your tenant? If the latter, we likely wouldn't be able to predict the web part width or height which you need to specify as a part of the webPartData block so that's something that you'd need to add yourself.

Closing due to lack of response

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OodapowUiPath picture OodapowUiPath  路  3Comments

waldekmastykarz picture waldekmastykarz  路  3Comments

aakashbhardwaj619 picture aakashbhardwaj619  路  3Comments

StfBauer picture StfBauer  路  3Comments

joshua-probst picture joshua-probst  路  3Comments