I would like to build a flow that would reply to a new Team's channel message when a string of a specific format is not in the message. So it would be:
I have the steps to automatically reply to a message, but am not sure how to accomplish the search in #2 and reply if needed. I'm assuming it's done using expressions and I haven't worked with those yet as I have just begun messing around with Flow.
for only numbers use expression int(dynamiccontentstring)
This will succeed for number and throw error(fail for non numeric)
You can then use configure run after settings for next action (based on failed case) and send email if non-numeric
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @glura ,
Does the whole message would be the string that you mentioned?
If the whole message would be the string that you mentioned, then your requirement could be achieved, and please let me know an d I would offer you the workaround.
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Alice, yes, the whole message is what I'm searching through. I'm not a developer but I think of it as something like this.
Parse the message and put each word in to the element of a variable array.
Check each element of the array to see if contains a string of 15 characters.
If a 15 character string is found, check if they are all numbers. If so, flow is done and do nothing.
If a 15 character string is NOT found, automatically reply to the message.
The scenario is a user posts a new question on a Team channel. The flow would verify that this message includes a 15 charater ID. If it does, there is nothing to do. If it does NOT, the flow should automatically reply to that message, requesting the user post the ID.