run action sequence from snippet

  • 2
  • Question
  • Updated 2 months ago
  • Answered
How?
Photo of Pat Vachon

Pat Vachon, Champion

  • 45,236 Points 20k badge 2x thumb

Posted 1 year ago

  • 2
Photo of Zach McElrath

Zach McElrath, Employee

  • 54,246 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
};
skuid.actionSequences.getByName("GetShippingRate").run(namedInputs);

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