EnhancedLightningGrid icon indicating copy to clipboard operation
EnhancedLightningGrid copied to clipboard

Custom Action Not working - Error Invalid event name - cannot identify event

Open tharrington opened this issue 1 year ago • 2 comments

I have created a custom action in accordance with this ticket:

https://github.com/SalesforceLabs/EnhancedLightningGrid/issues/27

<aura:event type="APPLICATION" access="global" description="CloseCaseCustom"/>

And I am utilizing metadata to setup this grid:


 {
          "attributes": {
            "type": "sortablegrid__SDG_Action__c"
          },
          "sortablegrid__SDG__c": null,
          "Id": null,
          "Name": "Close Incident",
          "sortablegrid__Action_Order__c": 2,
          "sortablegrid__Action_Type__c": "Row Button",
          "sortablegrid__Event__c": "e.c:CloseCaseCustom.evt",
          "sortablegrid__Event_Payload__c": "{\"recordId\":\"#Id#\"}",
          "sortablegrid__Requires_Createable__c": false,
          "sortablegrid__Requires_Deletable__c": false,
          "sortablegrid__Requires_Editable__c": true,
          "sortablegrid__Icon__c": "action:close"
        }

However, I am receiving the error:

Error Invalid event name - cannot identify event

e.force:editRecord and other standard actions work as expected.

As you can see I have marked the event as global.

tharrington avatar Nov 08 '22 15:11 tharrington