I am trying to override two standard actions New and Edit for my custom object through a single Aura component. I am not sure how to find inside my aura which button is clicked.

1 Answer 1


If recordId is null, it is a new record, otherwise recordId will be the Id of the record you're editing.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .