Does a Branch on a Mass-Action run for each row?

  • 1
  • Idea
  • Updated 5 months ago
  • Under Consideration
We are trying to create a branch that acts as a validation to make sure each row selected has the same lookup Id as all the other selected rows for a given field. In our example this is a lookup to a custom "Part" field.

However, we are getting mixed results when using a branch to compare the row to the top row, using global merge syntax. 

Do Branches on Mass-Action buttons run on each row?
Photo of Sam Becker

Sam Becker

  • 1,168 Points 1k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Sam,

It doesn't look like they do. I also couldn't get the branch action to work correctly in a mass action. I've notified our developers of this issue and we'll let you know when this is fixed in a future release.

Thanks!
Photo of Sam Becker

Sam Becker

  • 1,168 Points 1k badge 2x thumb
Thank you!
Photo of Arne-Per Heurberg

Arne-Per Heurberg

  • 1,336 Points 1k badge 2x thumb
any fix to this?
Photo of Josh Lewis

Josh Lewis

  • 1,218 Points 1k badge 2x thumb
Hi Arne-Per,

It looks like this is still with our developers. I have highlighted this as a need with the team again, and will keep you updated when this is released.

Thanks,

Josh
Photo of Arne-Per Heurberg

Arne-Per Heurberg

  • 1,336 Points 1k badge 2x thumb
Thanks Josh. For current need wrote JS solution but am excited to have the functionality as part of action framework so I delegate upcoming uses (there are many).
Thanks for all that you guys did. Cheers!
Photo of JD Bell

JD Bell, Senior Product Engineer

  • 2,996 Points 2k badge 2x thumb
Mass Actions run once with all rows in context, rather than running multiple times with one row in context. Unfortunately, this means that when evaluating a condition, such as in a branch, Skuid works with only the first row in context.

We are investigating some exciting alternatives, but the desired behavior is not supported in the current release.

As a work around, you could use a JavaScript snippet to call an Action Sequence multiple times, passing in a different row with each invocation.