There have been multiple discussions so far but the gist is as followed:
- Power Platform uses different names for propertys (Id's, Names, DisplayNames'). This issue is to capture the new requirements.
- The goal is to align the property names so each Power Platfom uses the same properties among the PP grouped commands (eg. all use an Name)
Todo's:
Commands that needs refactoring
m365 pa app commands (export, get, list, remove, consent set, owner set, permission ensure, permission list, permission remove) all the -n, --name parameter that maps to the id property of the returned json object
m365 pa connector export uses the --connector property that maps to the name property of the returned json object
m365 pa environment get uses the --name property that maps to the name property of the returned json object
m365 flow commands (disable, enable, export, get, remove, connector export, connector list, owner, run) use name or flowName that maps to the name property of the returned json object
m365 pp aibuilder commands use name or id that map to the msdyn_name and _msdyn_templateid_value vaues of the returned json object
m365 pp card commands use name or id that map to the name and cardid values of the returned json object
m365 pp chatbot commands use name or id that map to the name and botid values of the returned json object
m365 pp table commands use name that map to the LogicalName value of the returned json object
m365 pp gateway commands use id that map to the id value of the returned json object (should provide support for Name)
m365 pp solution commands use name or id that map to the friendlyname and solutionid values of the returned json object
Suggested spec
m365 pa app commands (export, get, list, remove, consent set, owner set, permission ensure, permission list, permission remove)
- ✅ keep the
-n, --name parameter that maps to the name property of the returned json object to --name
m365 pa connector export uses the --connector property that maps to the name property of the returned json object
- ⚠️ rename the
--connector parameter that maps to the name property of the returned json object to --name
m365 pa environment get uses the --name property that maps to the name property of the returned json object
m365 flow commands (disable, enable, get, remove, connector export, connector list, owner, run) use name or flowName that maps to the name property of the returned json object
m365 flow export command use name that maps to the name property of the returned json object
- ⚠️ rename the
--id parameter to --name
m365 pp aibuilder commands use name or id that map to the msdyn_name and _msdyn_templateid_value vaues of the returned json object
m365 pp card commands use name or id that map to the name and cardid values of the returned json object
- ✅ leave
--cardid as is
- ✅ leave
--name as is
m365 pp chatbot commands use name or id that map to the name and botid values of the returned json object
- ✅ leave
--botid as is
- ⚠️ rename the
--name parameter to --displayName
m365 pp table commands use name that map to the LogicalName value of the returned json object
m365 pp gateway commands use id that map to the id value of the returned json object (should provide support for Name)
m365 pp solution commands use name or id that map to the friendlyname and solutionid values of the returned json object
- ⚠️ rename to
friendlyname and solutionid
Actual things to change
Let's align some options with our naming convention.
Aside from these, the pp chatbot list command has a faulty displayName response output. This should be mapped back to name
There have been multiple discussions so far but the gist is as followed:
Todo's:
Commands that needs refactoring
m365 pa appcommands (export,get,list,remove,consent set,owner set,permission ensure,permission list,permission remove) all the-n, --nameparameter that maps to theidproperty of the returned json objectm365 pa connector exportuses the--connectorproperty that maps to thenameproperty of the returned json objectm365 pa environment getuses the--nameproperty that maps to thenameproperty of the returned json objectm365 flowcommands (disable,enable,export,get,remove,connector export,connector list,owner,run) usenameorflowNamethat maps to thenameproperty of the returned json objectm365 pp aibuildercommands usenameoridthat map to themsdyn_nameand_msdyn_templateid_valuevaues of the returned json objectm365 pp cardcommands usenameoridthat map to thenameandcardidvalues of the returned json objectm365 pp chatbotcommands usenameoridthat map to thenameandbotidvalues of the returned json objectm365 pp tablecommands usenamethat map to theLogicalNamevalue of the returned json objectm365 pp gatewaycommands useidthat map to theidvalue of the returned json object (should provide support forName)m365 pp solutioncommands usenameoridthat map to thefriendlynameandsolutionidvalues of the returned json objectSuggested spec
m365 pa appcommands (export,get,list,remove,consent set,owner set,permission ensure,permission list,permission remove)-n, --nameparameter that maps to thenameproperty of the returned json object to--namem365 pa connector exportuses the--connectorproperty that maps to thenameproperty of the returned json object--connectorparameter that maps to thenameproperty of the returned json object to--namem365 pa environment getuses the--nameproperty that maps to thenameproperty of the returned json object--nameas ism365 flowcommands (disable,enable,get,remove,connector export,connector list,owner,run) usenameorflowNamethat maps to thenameproperty of the returned json object--nameas ism365 flow exportcommand usenamethat maps to thenameproperty of the returned json object--idparameter to--namem365 pp aibuildercommands usenameoridthat map to themsdyn_nameand_msdyn_templateid_valuevaues of the returned json objectm365 pp cardcommands usenameoridthat map to thenameandcardidvalues of the returned json object--cardidas is--nameas ism365 pp chatbotcommands usenameoridthat map to thenameandbotidvalues of the returned json object--botidas is--nameparameter to--displayNamem365 pp tablecommands usenamethat map to theLogicalNamevalue of the returned json object--nameas ism365 pp gatewaycommands useidthat map to theidvalue of the returned json object (should provide support forName)--idas ism365 pp solutioncommands usenameoridthat map to thefriendlynameandsolutionidvalues of the returned json objectfriendlynameandsolutionidActual things to change
Let's align some options with our naming convention.
-c, --connector <connector>-n, --name <name>-i, --id <id>-n, --name <name>Aside from these, the pp chatbot list command has a faulty displayName response output. This should be mapped back to
name