0

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">
    <apiVersion>58.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordAction</target>
    </targets>
    <targetConfigs>
        <targetConfig targets="lightning__RecordAction">
            <actionType>ScreenAction</actionType>
            <property name="isTriggerAPI"
                      type="Boolean"
                      label="Trigger API"/>
        </targetConfig>
    </targetConfigs>
</LightningComponentBundle>

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

3
  • 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

0

You must log in to answer this question.