# triggerBulkAction smart view

**URL:** <https://community.forestadmin.com/t/triggerbulkaction-smart-view/2557>\
**Category:** Help me!\
**Created:** [May 25, 2021, 11:46pm UTC](https://community.forestadmin.com/t/triggerbulkaction-smart-view/2557 "2021-05-25T23:46:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![austinrupie](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/austinrupie/32/1100_2.png) [@austinrupie](https://community.forestadmin.com/u/austinrupie)\
**Post date:** [May 25, 2021, 11:46pm UTC](https://community.forestadmin.com/t/triggerbulkaction-smart-view/2557/1 "2021-05-25T23:46:48Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Guillaume\_Cisco](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaume_cisco/32/918_2.png) [@Guillaume\_Cisco](https://community.forestadmin.com/u/Guillaume_Cisco)\
**Post date:** [May 26, 2021, 7:56am UTC](https://community.forestadmin.com/t/triggerbulkaction-smart-view/2557/2 "2021-05-26T07:56:51Z")

</div>

Hello @austinrupie,

You can use `triggerSmartAction` as documented [here](https://docs.forestadmin.com/documentation/reference-guide/views/create-and-manage-smart-views#triggering-a-smart-action)

```javascript
<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 🙂
