This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

Howto: Write rule to trigger action that takes an array parameter

If you are writing a rule that runs an action that takes an array parameter, you need to use JSON-style notation for your array.

So your rule should look something like this:

---
name: "myrule"
pack: "default"
description: "example rule to trigger action taking an array"
enabled: true
trigger:
  type: "my.trigger"
criteria:
  trigger.body:
    type: "iequals"
    pattern: "testing"
action:
  ref: "default.myaction"
  parameters:
    ArrayParameter: ["foo", "bar"]
4 Likes