RafflePress Action

This guide shows you how to add RafflePress actions to a Zaplane workflow. It walks through Add Entry to Contestant, then lists every other RafflePress action. RafflePress must be installed and active on your WordPress site first.

Step 1: Create a Workflow

Go to Zaplane > Workflows in your WordPress dashboard, then click Create Workflow to open the workflow editor.

Before adding a RafflePress action, you need to set up a trigger first. Here is how to do it quickly:

1.Click Select an app in the Trigger box and choose Apps.
2.Search for and select your trigger app.
3.Choose the Trigger Type that matches the event you want, then click Continue.
4.On the Configure tab, set any required options, then click Continue.
5.On the Test tab, click Test Trigger to confirm it works, then click Save.

Once the trigger is saved, add the RafflePress action. To use RafflePress as the trigger instead, see RafflePress trigger or any other app.

Step 2: Add an Action

Click the + icon beside the trigger and choose Apps in the Add Action panel.

Apps in the Add Action panel

Step 3: Select the RafflePress App

Search for RafflePress, select it, then click Continue.

Select the RafflePress App

Step 4: Choose the Action Type

Open the Action Type dropdown and select Add Entry to Contestant, then click Continue.

Add Entry to Contestant, then click Continue

Step 5: Configure the Action

On the Configure tab, fill in the fields:

Giveaway (required): the giveaway to work in.
Contestant (required): the contestant who receives the entries. The list shows contestants from the giveaway you picked.
Entry Task: a task from the giveaway. Leave it empty to add entries without a task.
Number of entries: how many entries to add. If you leave it empty, Zaplane uses the task’s entry value, or 1 when there is no task. The maximum is 1000.

Click Continue.

Tip: Type @ in a field to insert dynamic data from the trigger, such as the contestant ID.

Configure the Action

Step 6: Test the Action

On the Test tab, click Test Action to run the action once. This adds real entries to the contestant, so test on a giveaway you can afford to change. If it works, click Save.

Test Action to run the action once

The output shows the giveaway, the contestant, the task ID and entries_added.

The output shows the giveaway

Step 7: Update and Activate the Workflow

Set the workflow status to Active, then click Update in the top-right corner.

Update and Activate the Workflow

All RafflePress actions

Action

What it does

Fields

Get Giveaway

Returns one giveaway with its contestant count, entry count and tasks.

Giveaway

Get Giveaways

Returns a list of giveaways and a count.

Which giveaways (All, Active only, Inactive only), Maximum giveaways (default 50, up to 500)

Get Contestant

Returns one contestant with their entry count.

Giveaway, Contestant

Get Giveaway Contestants

Returns a list of contestants and a count.

Giveaway, Which contestants (All, Confirmed, Unconfirmed, Winners), Maximum contestants (default 100, up to 1000)

Register Contestant

Adds a new contestant to a giveaway.

Giveaway, Email (required), First Name, Last Name, Email Status (Confirmed or Unconfirmed)

Add Entry to Contestant

Adds entries to a contestant.

Giveaway, Contestant, Entry Task, Number of entries

Set Contestant as Winner

Marks a contestant as a winner.

Giveaway, Contestant

Confirm Contestant Email

Marks a contestant’s email as confirmed.

Giveaway, Contestant

A few things to know:

Register Contestant needs a valid email, and it returns an error if that email is already registered in the giveaway. Email Status defaults to Confirmed.
Add Entry to Contestant also fires RafflePress’s own entry hook. Other Zaplane workflows that use a RafflePress trigger will run, so avoid loops.
If a giveaway, contestant or task cannot be found, the action returns an error through its error output.

Done!

RafflePress is connected. Your workflow now runs the RafflePress action every time the trigger fires.