Skip to content

Poll by ID

Available since: 1.0.0

Provided tokens

Token Description
[last_id] The last ID received during the last poll.
[event] The event.
[event:machine_name] The machine name of the ECA event.
[session_user] The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account.

Fires when an external system polls Drupal for data that has been created since a given ID. The polling endpoint receives JSON with a name and id field.

The [last_id] token provides the last ID received during the previous poll. Use ECA actions to call addItem() on the event to return data items with their IDs.

Fields

Event ID

The event ID which needs to be the same that the polling uses to receive the data.

The event ID which needs to match the name field in the polling request's JSON payload.