Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tharrington opened this issue Nov 8, 2022 · 2 comments

Comments

@tharrington
Copy link

tharrington commented Nov 8, 2022

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

#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.

@wallnern
Copy link

Hi, we don't use the metadata to setup the grid but I think you have to remove the '.evt' from the event name.

@tharrington
Copy link
Author

I have tried both ways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants