💡 Idea
I have small idea for an improvement for the m365 spo contenttype add command. I was thinking that similar to other 'add' like commands it could also return the added/created object 🤔 so if we would do
$field = m365 spo field add --webUrl https://tenanttocheck.sharepoint.com/sites/DevSite --xml "<Field Type='URL' DisplayName='More information link' Required='FALSE' EnforceUniqueValues='FALSE' Indexed='FALSE' Format='Hyperlink' Group='PnP Columns' ID='{6085e32a-339b-4da7-ab6d-c1e013e5ab27}' SourceID='{4f118c69-66e0-497c-96ff-d7855ce0713d}' StaticName='PnPAlertMoreInformation' Name='PnPAlertMoreInformation'></Field>"
$list = m365 spo list add --title Announcements123 --baseTemplate Announcements --webUrl https://tenanttocheck.sharepoint.com/sites/DevSite
$ct = m365 spo contenttype add --webUrl https://tenanttocheck.sharepoint.com/sites/DevSite --name 'PnP Alert' --id 0x01007926A45D687BA842B947286090B8F67D --group 'PnP Content Types'
$field
$list
$ct
we will notice that the $field and the $list are objects (string arrays, or json depending what is the output of the command we set), but the $ct is emtpy and we need to run the m365 spo contenttype get to get the content type object
Do you think it's worth adding? 🤔 If so maybe I could give it a try 🤔
💡 Idea
I have small idea for an improvement for the
m365 spo contenttype addcommand. I was thinking that similar to other 'add' like commands it could also return the added/created object 🤔 so if we would dowe will notice that the
$fieldand the$listare objects (string arrays, or json depending what is the output of the command we set), but the $ct is emtpy and we need to run them365 spo contenttype getto get the content type objectDo you think it's worth adding? 🤔 If so maybe I could give it a try 🤔