Building a view command set extension
View command set extensions allow you to add extra functionalities to the command bar of a list that can be executed for a single item or for the entire list, allowing you to include your business processes in Microsoft Lists.
Let's discuss the following scenario.
John wants to share lists and list items on Microsoft Teams and wants to automate the copy/paste process between both applications. John wants to implement the Share to Teams embedded button that can be used from any application to share a link to Teams. To make this new option available to all the lists in the tenant, John has decided to build a command set extension.
When you create a command set extension, you will get three default methods that are executed to create the command set:
onInit
– This is the method where you must initialize your extension. Any code that you need to get executed before creating the command set must be defined in this function...