I have created a ListView command set extension using SPFx and upload it in the app catalog. Now I want to install this extension for only particular sites.
I tried adding it as a custom action but it is not working.
Any help would be appreciated.
CustomActionEntity ca = new CustomActionEntity
{
Title = "HelloWorld",
RegistrationId = "101",
RegistrationType = UserCustomActionRegistrationType.List,
Location = "ClientSideExtension.ListViewCommandSet.CommandBar",
ClientSideComponentId = spfxExtensionGlobalHeaderId,
ClientSideComponentProperties = "{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}"
};
currentWeb.AddCustomAction(ca);