triggerBulkAction smart view

Where is triggerBulkAction? How can I trigger the bulk action helper in the smart view? Can triggerSmartAction take an array of records as input?

Expected behavior

Please describe here the behavior you are expecting.

Actual behavior

What is the current behavior?

Failure Logs

Please include any relevant log snippets, if necessary.

Context

Please provide any relevant information about your setup.

  • Package Version:
  • Express Version:
  • Sequelize Version:
  • Database Dialect:
  • Database Version:
  • Project Name:

Hello @austinrupie,

You can use triggerSmartAction as documented here

<Button::BetaButton
  @type="primary"
  @text="Reschedule appointment"
  @action={{fn this.triggerSmartAction @collection 'Reschedule' record}}
/>

The first argument is the collection that has the Smart Action. The second argument is the Smart Action name, here Reschedule , and the third argument is an array of records or a single one.

I hope it helps :slight_smile:

2 Likes