Open Adam-it opened 2 months ago
@andrewconnell any feed on 👆
Sorry, no insights to share on this one.
The only remark from my side is that get
commands don't implement default properties.
The only remark from my side is that
get
commands don't implement default properties.
Thanks for the comment. Removed. @pnp/cli-for-microsoft-365-maintainers any other comment before I open this up?
No comments. Good remark about getting containers by name. Let's do this.
Happy to work on it:)
Thank you!
Usage
m365 spe containertype get [options]
Description
Get a specific Container Type
Options
-i, --id [id]
id
orname
but not both.-n, --name [name]
id
orname
but not both.Examples
Gets Container Type by id
Gets Container Type by name
Additional Info
We may use CSOM for this command passing the following
⚠️ Tricky part
The CSOM call does not support filtering by
name
only byGuid
so if we want to add handling also querying the Container Type byname
what we will need to do under the hood is query all Container Types and filter them byname
. Also if more than one Container Type will be found (as thename
does not have to be unique) CLI (when interactive mode on) should prompt to pick the correct one based onid