Skip to content

Resolve "Allow to use the result from the previous action in the next action"

Add a new data provider type, PreviousActionDataProviderType that allows using data from previous actions in the current formula data explorer window.

This is what the setup looks like with these changes:

previous-action-setup

Which would produce the following user experience:

previous-action-demo

It works for Create and Update row workflow actions by inspecting the schema that is returned by these actions and injecting it in the data explorer window. The actions are also ordered and have an index on the right side to help the user remember their order.

How to test this MR

  • Add a new form, select the submit button and go to the events tab
  • Add a new create/update event
  • Add a new "notification" event. Notice that the results of the previous event are now available to be used in the notification fields.
  • Publish or preview the page and confirm the actions were correctly triggered and followed the order.

I suggest to try combining multiple events to see if anything breaks. It should ignore events that do not return anything (e.g open page) and that should not affect the ordering number. This data provider should also only appear in the events tab so it is worth to experiment with other formula inputs to confirm that this is the case.

Closes #2224 (closed) Closes #2201 (closed)

Edited by Jérémie Pardou

Merge request reports