Hi,
I’m building a workflow that does the following:
- Select data using SQL
- Summarizes the data to a count of the result rows
- Check if the summary is more than 0 (basically makes sure there is a result)
- If there is result: insert result from step 1 and send 1 e-mail using the summary
- Always end with an HTTP call
Because the insert node uses the input from the IF node it doesn’t insert the data from de query. To get around this I think the query must run again. This is no problem for simple queries but some queries are more extensive and it would be great if this isn’t necessary.
At the moment I’m using the following workflow.
Any help to make this workflow more efficient would be greatly appriciated.