Search code examples
salesforcesalesforce-lightninglwclightning

Anyone have experience with exposing Event type in Salesforce Lighting Web Component LWC for the Dynamic Interactions?


I tried to expose the Event tab in the LWC. I followed this Help document from Salesforce: https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_dynamic_interactions.htm&type=5&release=234

Here is another document that has more info on the process of creating this LWC: https://www.forcetrails.com/2021/08/publish-lwc-events-to-lightning-app-builder.html

I created the Apex Controller Class.

I was able to create and deeply the Contact list LWC

I'm stuck on the Account List LWC where the XML file is keep throwing me an error on the event.

Everything went well except when I tried to deploy the accountList.js-meta.xml. I personally have no experience in XML and very little experience in Apex and JS.

Here is the error message:

Invalid element name: -Event

One of the following is expected:

  • hasStep
  • objects
  • property
  • propertyType
  • SupportedFormFactors

I tried all of those expected values, and none of them is working. Thank you in advance and any help and direction will be greatly appreciated!!!


Solution

  • From the error message that you have mentioned, it looks like you have named that XML element as Event. Since XML is case-sensitive, could you please try it with the event tag? Hope it will resolve your issue.