---
name: "Jifty::Action::Record::Bulk"
section: "3pm"
platform: "linux"
package: "libjifty-perl"
version: "1.10518+dfsg-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Jifty::Action::Record::Bulk"
---

# Jifty::Action::Record::Bulk(3pm)

Perform multiple record actions

## NAME

Jifty::Action::Record::Bulk - Perform multiple record actions

## SYNOPSIS

```
  use strict;
  use warnings;
  package MyApp::Action::BulkUpdateFoo;
  use base qw/ Jifty::Action::Record::Bulk /;
  __PACKAGE__->add_action('MyApp::Action::DeleteFoo' => { trigger => 'delete', final => 1 });
  __PACKAGE__->add_action('MyApp::Action::UpdateFoo');
```

## METHODS

### add\_action CLASS \[, OPTIONS\]

Merges the given action class into this one.  Will `"die"` if the "action\_class" in Jifty::Action::Record of the given `"CLASS"` doesn't match previously added classes.

OPTIONS should be a hash reference of additional options.  The existing options are:

- trigger

  Only run if this argument is provided

- final

  If this action runs, run **only** this action.

### arguments

Merges together arguments from all of the actions added with "add\_action".  The record IDs to act on are stored (comma-separated) in an argument named `"ids"`, by default.

### perform\_action CLASS, IDS

Performs the given action `"CLASS"` on the given record `"ID"`s, which should be an array reference.

### take\_action

Completes the actions on all of the IDs given.

### report\_success

Reports `"Bulk update successful"`.
