How to pass a parameter to DSL-script/rule

Actually it can if you install the Block library: Mail Actions

You can install that from Add-on Store → Automation → Block Libraries.

In Rules DSL you don’t. Rules DSL doesn’t support receiving values passed into the script like that.

Your options are (in order of preference):

  • install and use the Block library and do away with the whole rule calling in the first place
  • implement the called rule using JS Scripting instead of Rules DSL
  • use the sharedCache to store the value in the calling rule and retrieve the value in the called rule