run action sequence from snippet

  • 2
  • Question
  • Updated 7 months ago
  • Answered
Photo of Pat Vachon

Pat Vachon, Champion

  • 46,404 Points 20k badge 2x thumb

Posted 2 years ago

  • 2
Photo of Zach McElrath

Zach McElrath, Employee

  • 56,134 Points 50k badge 2x thumb
Official Response
Pat / Chandra,

As of the Millau U2 Release, we adjusted the syntax of the Action Sequences run() function to have named Action Framework Inputs be the first argument that run() accepts. So as of 11.2.x release, the recommended way to do this is the following:

var namedInputs = {
    "ZipCode": "37408",
    "TotalPounds": 4.5

This is the supported way to invoke Action Sequences from JavaScript by name, passing in named inputs.