run action sequence from snippet

  • 1
  • Question
  • Updated 3 weeks ago
  • Answered
How?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 4 months ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k 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
};
skuid.actionSequences.getByName("GetShippingRate").run(namedInputs);

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