web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Enabling auto replies ...
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:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,164 Super User 2026 Season 1 on at
     
    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.
     
  • AD-14072207-0 Profile Picture
    2 on at
    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"
    }
    }
  • MS.Ragavendar Profile Picture
    7,164 Super User 2026 Season 1 on at
     
    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.
  • MS.Ragavendar Profile Picture
    7,164 Super User 2026 Season 1 on at
     
    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 833

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 383

Last 30 days Overall leaderboard