I am looking to use the Advanced Hunting Query Item in Power Automate to gather into and post that info into a teams channel. I am getting an error on my query and I am unsure how the query needs to be passed the Advanced Hunting Step.
Here is my current Flow ( I feel like the input and output may need to be sanitized or formatted in some way). I have tried it with the query all on the same line as well with same results. Any help is greatly appreciated as I cannot really find any examples online of using this in Power Automate.

