Is there a way to make flows run synchronously/as before rules?

Navaneeth1
Tera Guru

I created a flow designer flow for an ask approval process in a custom scoped application. The approvers list is only populated after I refresh the form since the flow takes time to run after it's updated.

Is there a way to make this flow run as before business rule or run synchronously so that the user does not need to refresh the page in order to see the approvers list?

1 ACCEPTED SOLUTION

Mark Manders
Mega Patron

Flows don't run 'before' at this moment. It is taking the data you have as input, and 'before' could mean that the data isn't there yet. Hopefully something will be found for this, but if it really needs to be 'before', you have to use a BR.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

2 REPLIES 2

Mark Manders
Mega Patron

Flows don't run 'before' at this moment. It is taking the data you have as input, and 'before' could mean that the data isn't there yet. Hopefully something will be found for this, but if it really needs to be 'before', you have to use a BR.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Diogo Ramos
Giga Sage

You could create a subflow and trigger it from a business rule, making sure that when you trigger the subflow you use the synchronous code snippet. This will make sure the flow runs and finishes returning the outputs, now keep in mind this will make the form wait until the subflow completes, so it might or not be an interesting solution depending on the time it takes.