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: get custom action #20

Closed
waldekmastykarz opened this issue Nov 11, 2017 · 6 comments
Closed

New command: get custom action #20

waldekmastykarz opened this issue Nov 11, 2017 · 6 comments

Comments

@waldekmastykarz
Copy link
Member

Get details for a specified custom action:

  • command spo customaction get --id <id> --scope|-s [scope] --url|-u <url>
  • id of the custom action to retrieve
  • scope of the custom action. Allowed values Site|Web|All. Default All
  • requires connection to a SharePoint site
  • url of the site (collection) to retrieve the custom action from

More information available at https://msdn.microsoft.com/en-us/pnp_powershell/getpnpcustomaction

@VelinGeorgiev
Copy link
Contributor

Hey @waldekmastykarz how about myself working on that task?

Are allowed values Site|Web|All case sensitive?

@waldekmastykarz
Copy link
Member Author

Awesome! It’s yours. I believe they are, but to be sure check the REST API/CSOM specs.

@VelinGeorgiev
Copy link
Contributor

Hey @waldekmastykarz quick question on that. Do we really need the --url option if you would do spo connect "https://contoso.sharepoint.com/sites/test1" and then try to find custom action within this site? or Is spo connect always tenant admin context and we need the --url option to build site collection / web context?`

@waldekmastykarz
Copy link
Member Author

If we don't pass the URL, then you would have to reconnect each time you want to check custom actions for a site. Given that connect is interactive, it would be blocking when building scripts that work on different sites in the future. So ideally, you connect once to get access token and can then work on any site you need. Any arguments against including the URL (other than additional keystrokes 😉 )?

@VelinGeorgiev
Copy link
Contributor

Thanks @waldekmastykarz.
Not at all.
I was just trying to understand the logic behind, now it makes sense so I will proceed.

@waldekmastykarz
Copy link
Member Author

Awesome! Good of you to double check 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants