I have been trying to search the forum but haven’t quite been able to find or determine the way to go about implementing a function call that needs to first get data before being called.
In simplistic terms if I were to ask the bot to cancel all threads containing a 3 in the ID currently running on a system I would need the bot to first get all running threads, filter for all with a 3, then cancel them.
Currently I have it broken into two separate calls. The one to get the threads and the other to cancel them.
However, there is enough info in the first request to perform both actions but Im not sure of the correct way to get them to run in sequence or how to merge them into a single request?