Grouped actions order

 

Hi everyone, I have difficulties with the groped: execute a group of actions event.

The thing is I have a table for invoices in which I need to rebill some of them, and  I created a grouped actions button, but it doesn't follow the order.

G0ldsoul_0-1656103749942.png

"Refacturada" is the trigger so the next action will know that this invoice has to be rebilled, changing the column "REFACTURACION" to "SI".

G0ldsoul_1-1656103853834.png

"REFACTURA" is a LINKTOFORM() expression to call the form view of the invoice to create a new entry, copying all the data form the rebilled invoice, in which a new column is filled with the rebilled invoice number (Refactura).

G0ldsoul_2-1656104074521.png

The last action is called "CANCELAR FACTURA" so it will change the values of columns "REFACTURADA" to "" and "STATUS" to "CANCELADA"

But, the Grouped actions button doesn't follow that order, it will trigger the action to copy all the values in the new form, but it does not run the "CANCELAR FACTURA" button.

G0ldsoul_3-1656104845029.png

This is the grouped action button.

I don't know if there's a way to do this in the right order, thank you in advance for your help 😕

 

Solved Solved
0 3 194
1 ACCEPTED SOLUTION

There are at least a few approaches you can consider:

  • Do you even need a second data change action? With a button that invokes a group action, maybe the first action could set all the values in the original record as you need them, even including STATUS, and then the second and final action could open the pre-populated form.
  • It's certainly possible to create an automation that invokes a data change action like your CANCELAR FACTURA. You'd need to be able to define the condition that triggers the automation event as well as the row to run the action on.
  • You could set CANCELAR FACTURA as the Form saved event action for the form view. You'd need to define the action's condition to run only in applicable situations.

View solution in original post

3 REPLIES 3

In a group action, no actions are performed after an action that opens a different view (or deletes the current row).

@dbaum thank you, I didn't know that. Is there an alternative way to performe an action after the new for is saved? maybe through bots or something else

There are at least a few approaches you can consider:

  • Do you even need a second data change action? With a button that invokes a group action, maybe the first action could set all the values in the original record as you need them, even including STATUS, and then the second and final action could open the pre-populated form.
  • It's certainly possible to create an automation that invokes a data change action like your CANCELAR FACTURA. You'd need to be able to define the condition that triggers the automation event as well as the row to run the action on.
  • You could set CANCELAR FACTURA as the Form saved event action for the form view. You'd need to define the action's condition to run only in applicable situations.
Top Labels in this Space