Skip to content
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 weblink list #6269

Open
appieschot opened this issue Aug 23, 2024 · 4 comments · May be fixed by #6449
Open

New command: m365 pp website weblink list #6269

appieschot opened this issue Aug 23, 2024 · 4 comments · May be fixed by #6449

Comments

@appieschot
Copy link
Member

appieschot commented Aug 23, 2024

Usage

m365 pp website weblink list

Description

List all weblinks for the specified Power Pages website

Options

Option Description
--websiteId [websiteId] ID of the Power Pages website. Specify either websiteId or webName but not both.
--websiteName [websiteName] The unique name (not the display name) of the Power Pages website. Specify either websiteId or webName but not both.
-e, --environmentName <environmentName> The name of the environment where the Power Pages websites are located.
--asAdmin Run the command as admin and retrieve Power Pages websites for environments you do not have explicitly assigned permissions to.

Examples

List all weblinks for the site Contoso

m365 pp website weblinks list --websiteName Contoso --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"

List all webfiles for the site by id

m365 pp website weblinks list --websiteId 2ca3eaa5-140f-4175-8261-3272edf9f339--environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"

Default properties

  • Name
  • Id
  • Description
  • Publishing State

Additional Info

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/mspp_weblink

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.ts

In this case the API call would be ${dynamicsApiUrl}/api/data/v9.2/mspp_weblinks

@appieschot appieschot added the needs peer review Needs second pair of eyes to review the spec or PR label Aug 23, 2024
@Jwaegebaert Jwaegebaert added help wanted and removed needs peer review Needs second pair of eyes to review the spec or PR labels Aug 29, 2024
@Adam-it Adam-it added the hacktoberfest Issue perfect for hacktoberfest label Sep 24, 2024
@ktskumar
Copy link
Contributor

May I work on this

@ktskumar
Copy link
Contributor

Hi @milanholemans, it seems that mspp_weblink not returning the website information in direct response, which we can use it for filter. However mspp_weblinkset does contain the website information. Please, let me know your comments to proceed on this command.

@milanholemans
Copy link
Contributor

@appieschot can you help out?

@appieschot
Copy link
Member Author

the mssp-weblinkset is fine to use as well if I interpreter the docs correctly. No objects from me on that!

@ktskumar ktskumar linked a pull request Oct 25, 2024 that will close this issue
@Adam-it Adam-it removed the hacktoberfest Issue perfect for hacktoberfest label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants