Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Enabling auto replies for a message with specific keywords

(0) ShareShare
ReportReport
Posted on by 2
Hi,
I am trying to build a workflow for automating replies to a message posted in channel or a chat, if it contains "raise issue", and post an automated reply to that channel, I am facing issue in the condition where I try to check if message consist of "raise issue or not"
Categories:
  • MS.Ragavendar Profile Picture
    2,771 Super User 2025 Season 2 on at
    Enabling auto replies for a message with specific keywords
     
    A quick follow-up to see, does the suggestion worked for you or still you were looking for any other approaches or assistance.
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
     Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • MS.Ragavendar Profile Picture
    2,771 Super User 2025 Season 2 on at
    Enabling auto replies for a message with specific keywords
     
    I tried this trigger - When a new message is added to a chat or channel -> Compose
     
     
     
     
    However when a new message alone is being recognized, replies are not tested with some other triggers its not working.
     
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • AD-14072207-0 Profile Picture
    2 on at
    Enabling auto replies for a message with specific keywords
    Hi @MS.Ragavendar I tried the flow that you suggested thi is the preview code for Condition which is getting evaluated to false always  
    {
    "type": "If",
    "expression": {
    "and": [
    {
    "equals": [
    "@contains(triggerOutputs()?['body']['value'],'raise issue')",
    true
    ]
    }
    ]
    },
    "actions": {},
    "else": {
    "actions": {}
    },
    "runAfter": {}
    } and this is the code of main when a new message is received connector 
    {
    "type": "OpenApiConnectionWebhook",
    "inputs": {
    "parameters": {
    "threadType": "channel",
    "requestBody/channels": [
    "19:67bc4c756e4e4022832530b38894bf77@thread.tacv2"
    ],
    "requestBody/groupId": "ef0157ff-48a8-413a-92a0-ea703a7f2237"
    },
    "host": {
    "apiId": "/providers/Microsoft.PowerApps/apis/shared_teams",
    "connection": "shared_teams",
    "operationId": "WebhookNewMessageTrigger"
    }
    },
    "conditions": [],
    "metadata": {
    "operationMetadataId": "51b32f3b-131c-4c3f-8823-8712f50790ef"
    }
    }
  • Suggested answer
    MS.Ragavendar Profile Picture
    2,771 Super User 2025 Season 2 on at
    Enabling auto replies for a message with specific keywords
     
    In Power Automate there is a trigger when a message is posted in channel or chat.
     
    Add condition : If the message contains "raise issue" 
     
    Action : Reply to the message automatically.
     
     
    Enter the value in the trigger conditions
     
    @contains(toLower(triggerBody()?['text']), 'raise issue')
     
    Use Send Email action accordingly or post teams chat.
     
    Condition Based Means
     
     
    Formula
     
    contains(toLower(triggerOutputs()?['body']['text']), 'raise issue')
     
    True block your logic & false block nothing.
     
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2