run action sequence from snippet

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

Pat Vachon, Champion

  • 44,426 Points 20k badge 2x thumb

Posted 1 year ago

  • 2
Photo of Zach McElrath

Zach McElrath, Employee

  • 53,702 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.