Apex Data Source Action executes many times in Spark 12.0.7 API V1

  • 1
  • Problem
  • Updated 3 months ago
In Spark 12.0.7 API V1 version, every time when I select more than 1 row, Apex Data Source Action is executed with multiple calling to Invocable method.

Additionally, I can't pass a record id array to this Invocable method as well with this error. I found that this issue didn't occur in Skuid's previous versions.

Please help to check.

Photo of Kevin

Kevin

  • 762 Points 500 badge 2x thumb

Posted 3 months ago

  • 1
Photo of Kevin

Kevin

  • 762 Points 500 badge 2x thumb
Hi,

Please help to check this issue. It impacts our current working.

Thanks.
Photo of Mike Dwyer

Mike Dwyer, Champion

  • 4,518 Points 4k badge 2x thumb
More information about how this is set up might be helpful. But "select more than 1 row" suggests a Mass Action on a table.

Pre-Spark, I found that a javascript snippet would execute multiple times on a mass action IF the snippet was called from a Custom button, but only executed once if the button was Run Multiple Actions.

There may be something similar going on here. And maybe, in Spark, the Run a...Snippet action will also run for each row on a Run Multiple button type. Fixing bugs can also create bugs.
Photo of Kevin

Kevin

  • 762 Points 500 badge 2x thumb
Hi,

The issue is similar for Field Editor component on mass action. 
In my screenshot, I expect only one row but it displays 3 rows corresponding to the number of selected rows in the table.

This is a critical issue for us. Please help to resolve.

Thanks.