We are building manage package with quick action using lwc component,

Some customers need to trigger API and some doesn't.

So we decided to keep a Boolean check in the target config.

I am getting following error

The 'property' tag isn't supported for lightning__RecordAction

My config file:

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
        <targetConfig targets="lightning__RecordAction">
            <property name="isTriggerAPI"
                      label="Trigger API"/>

What is the best approach to over come this issue, other than creating two container component with default values ?

  • Note: Already customers are using this component and isExposed is set to be true, Not sure if I turn it to false will allow me to build new manage package ? or it will accept package upgrade in customer orgs ?
    – Ragul
    Sep 23 at 13:07
  • Add a custom setting or custom metadata type that the LWC reads to find out how to behave?
    – Phil W
    Sep 23 at 14:24
  • 1
    Yes I thought the same, But we do have multiple objects mostly customers will create quick action by selecting component.
    – Ragul
    Sep 23 at 15:43


You must log in to answer this question.