✓ Accepted answer
Confirmed native option (IFS Cloud 26R2 and later):
- Executing a workflow for a multiple record selection is supported from 26R2. See the "Workflow Examples - Technical Documentation For IFS Cloud" page for how to configure it.
Workaround for earlier releases (suggested by an IFS employee, not confirmed in the thread):
- Background: when a workflow is started from a command (ExecuteWorkflow), you cannot choose a "method" property the way you can with ExecuteAction, so the command cannot iterate over the selection.
- Add a custom attribute of type FndYesNo to act as a selector flag.
- Let users set the flag on the records they want and save.
- Use a Projection Action or Event Action to start the workflow for each row saved with the flag set to true. Make the workflow's last step reset the flag to false.
- If all selected records must be processed in a single workflow run (for example because of data dependencies), keep the flag but do not start the workflow on save. Instead, a command starts one workflow that reads every line with the flag set, processes them, and resets the flags to false at the end.
Prerequisites and limitations The native multi-selection behaviour needs IFS Cloud 26R2 or later; the thread points to the IFS documentation but gives no configuration detail. The flag-based workaround needs a custom attribute and a Projection Action or Event Action, and was proposed rather than confirmed as tested. The exact client-side error from the failed attempts is not given in the thread.
Sourced from IFS Community · original thread · dsj (26R2 answer), Gonzalo (workaround)