Hi! I’m creating this topic because it seems we didn’t had a discussion on this before. I’m out of luck trying to work with sync and async JS code in plugin element actions, what happens is that the sync code runs before the async one, as expected.
However, the sync code is running first even among different actions in the workflow, and I needed that a workflow action would only run after both sync and async code from a previus workflow step.
In this case, the synchronous code from both steps will run, and then the asynchronous code from both steps will run. Has anyone managed to run each step individually? Like, sync and async from step 1 and then sync and async from step 2.
Else, has anyone managed to wrap several steps in the same async (through promises) or whatever?
My only async need is to make a network request (for an image) and then save it to a
That happens because I need to write to a specific
instance.data.whatever in every step.
Any thoughts? (: