-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New command: m365 pp website webfile list #6262
Comments
Added an additional default property; the ID of the item helps with later commands (i.e. |
May I take this up? |
Sure, all yours! |
Api returns the default properties in below names,
Below is the returned response for single object,
Do I need to rename / modify the property names after retrieving the result. Please suggest |
Hi @ktskumar, generally speaking, we never modify the output of the API, so no, just return the result. |
Usage
m365 pp website webfile list
Description
List all webfiles for the specified Power Pages website
Options
--websiteId [websiteId]
websiteId
orwebName
but not both.--websiteName [websiteName]
websiteId
orwebName
but not both.-e, --environmentName <environmentName>
--asAdmin
Examples
List all webfiles for the site Contoso
m365 pp website webfile list --websiteName Contoso --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
List all webfiles for the site by id
m365 pp website webfile list --websiteId 2ca3eaa5-140f-4175-8261-3272edf9f339--environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
Default properties
Additional Info
More details here: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/mspp_webfile
See our
m365 pp card list
command on how to implement the as admin, and how to retrieve all items from a given endpoint: https://github.com/pnp/cli-microsoft365/blob/main/src/m365/pp/commands/card/card-list.tsIn this case the API call would be
${dynamicsApiUrl}/api/data/v9.2/mspp_webfiles
The text was updated successfully, but these errors were encountered: