Forum Discussion
2 Replies
- darshthakkarValued Contributor
Hi @TWCMG,
Welcome to the community. You can add a “mapper” snap after fetching your query result with the following expression:
After the mapper snap, have a “router” snap with the conditions:
- $UpdatedRecords > 0
- $UpdatedRecords < 0
NOTE: You can put any name instead of $UpdatedRecords, it could be $xyz / $counts / etc.
- bojanvelevskiValued Contributor
I think when you execute a query and you don’t have any results, you will get an empty object on the output, or just the original object if the Execute snap has an input.
In this case, you can check for a specific field that you know that exists in the result set.
Example: $.hasPath(‘timestamp’)