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 Automate / Workflows bot spamming...
Power Automate
Suggested Answer

Workflows bot spamming erratically when replying to a new message in teams channel

(1) ShareShare
ReportReport
Posted on by 4
I have configured my workflows bot such that when a new post is created in the configured teams channel, it will reply with a message as flow bot.
The issue is it works fine for all other teams channels, except the one I wanted to deploy it to.
Issue facing:
It works perfectly upon replying to messages, but it is also at times creating that message as a post and spamming it randomly, when no one has posted anything new.
 
Anyone knows the fix for this issue?
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
     
    Would have to see a specific flow run, where it did this, so we can see The Trigger inputs and outputs, so we can see WHY it thought it needed to run.
     
    That's the only way to help
     
    1. Go to the Flows Details Page
    2. Click on a Run that did the behavior
    3. Click on the Trigger and review its Inputs and Outputs
     
    Either its triggering on retries, or some bogus messages that people delete or its triggering correctly and for the correct Team, but you are accidentally somehow posting to the wrong one.
     
     
     
  • Suggested answer
    Riyaz_riz11 Profile Picture
    4,150 Super User 2026 Season 1 on at
    Hi,

    Add a Condition immediately after the trigger

    Insert a Condition action:

    Expression (example):

    triggerOutputs()?['body/from/user/displayName']
     

    Operator:

    is not equal to
     

    Value:

    Flow bot
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz
     
  • AM-03071255-0 Profile Picture
    4 on at
    Thanks for your suggestions.
     
    I have tried both using:
     
    triggerOutputs()?['body/from/user/displayName'] not equal to Flow bot
     
    the condition result is false and is getting skipped even though the user is not Flow bot
     
    and 
    @not(equals(triggerOutputs()?['body/eventDetail/initiator/user/displayName'], 'Flow bot'))
    @not(equals(triggerOutputs()?['body/eventDetail/initiator/user/displayName'],null))
     
    inside the trigger conditions field under settings of "When a new message gets added in a channel"
     
    But the flow does not seem to work even for normal cases when this is added.
     
     
    Here is my input when I went inside a past run where it ran erratically
    {
    "headers": {
    "Transfer-Encoding": "chunked",
    "...
    "id": "1751557619119",
    "body": {
    "contentType": "html",
    "content": "<systemEventMessage/>"
    },
    "channelIdentity": {
    "teamId": "4a321968-f7fe-4cf5-8cd8-76d5493bcb00",
    "channelId": "19:ZeJ4JalaRc4tXanIqfXft5_HXsp5cqFlcq_cvlK3hyw1@thread.tacv2"
    },
    "attachments": [],
    "mentions": [],
    "reactions": [],
    "eventDetail": {
    "@odata.type": "#microsoft.graph.membersAddedEventMessageDetail",
    "visibleHistoryStartDateTime": "0001-01-01T00:00:00Z",
    "members": [
    {
    "id": "61c52e51-093c-4673-996d-73591743a486",
    "displayName": null,
    "userIdentityType": "aadUser",
    "tenantId": "3d44f5c7-726e-45cd-b26c-3e58cddea376"
    }
    ],
    "initiator": {
    "application": null,
    "device": null,
    "user": {
    "@odata.type": "#microsoft.graph.teamworkUserIdentity",
    "id": "61c52e51-093c-4673-996d-73591743a486",
    "displayName": null,
    "userIdentityType": "aadUser",
    "tenantId": "3d44f5c7-726e-45cd-b26c-3e58cddea376"
    }
    }
    }
    }
    }
     
     
    As you can see the user display name is null.
     
    Did I miss anything?
     
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at
     
    Are you still having an issue?
     
    Can you share your configuration and maybe your bot?

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 Automate

#1
Vish WR Profile Picture

Vish WR 921

#2
Valantis Profile Picture

Valantis 801

#3
Haque Profile Picture

Haque 588

Last 30 days Overall leaderboard