Have a flow and purpose of which is to post a message in the channel, in order to avoid duplicate post, I have to check if a thread is already initiated in the team channel with the subject or not, if it is not there, then have to post a new thread. Currently i see the only way to do achieve by below
a. Get list of all the messages in the team channel
b. Loop through each and check if there is one with subject or not
c. Then take decision
This will not scale out when there are lot of message in team channel .
Is there any easy way to find the team message directly ?