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 / Post a message to Team...
Power Automate
Answered

Post a message to Teams when a new item is added to a Sharepoint List With Conditions

(1) ShareShare
ReportReport
Posted on by

I have a flow that starts with When an item is created in a Sharepoint list, then I have Post a Message in a Teams chat or channel. I want to add a condition that the Teams message is only sent when the "Location" column contains one of several different values. I added the condition, but it is not sending the message in Teams anymore. What am I doing wrong?

BelindaH_0-1719854928232.png

 

Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @BelindaH ,

    Is your location column a multiple-choice column?

    Best Regards,

    Sunshine Gu

  • CU05082214-0 Profile Picture
    on at

    No, it is a single choice column.

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @BelindaH ,

    Please check this test:

    Flow Preview:

    vyetonggumsft_2-1719890813197.png

    Flow Configuration:

    vyetonggumsft_1-1719890786032.png

    Best Regards,

    Sunshine Gu

  • CU05082214-0 Profile Picture
    on at

    Thank you! I will test first thing tomorrow 

  • Verified answer
    CU05082214-0 Profile Picture
    on at

    Unfortunately, it did not work for me. Any time I add conditions to a flow, the flow will not work for some reason. I wanted to filter the items to only receive the Teams message for the above locations, but I finally just set the flow to send the message for all newly created items in the SharePoint list.

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @BelindaH ,

    Please check this test:

    SharePoint List:

    vyetonggumsft_3-1719978703737.png

    Flow Preview:

    vyetonggumsft_0-1719978237560.png

    Flow Configuration:

    vyetonggumsft_1-1719978400610.png

    @Or(contains(if(empty(item()?['Location/Value']),'',item()?['Location/Value']), 'DFW'),contains(if(empty(item()?['Location/Value']),'',item()?['Location/Value']), 'IOC'),contains(if(empty(item()?['Location/Value']),'',item()?['Location/Value']), 'TOL'),contains(if(empty(item()?['Location/Value']),'',item()?['Location/Value']), 'ORD'),contains(if(empty(item()?['Location/Value']),'',item()?['Location/Value']), 'DFW-HGR'))
    length(body('Filter_array'))

    vyetonggumsft_2-1719978577296.png

    item()?['CompanyNumber']
    item()?['FinalMeetingDate']
    item()?['MeetingFrequency/Value']

    The Result:

     

    vyetonggumsft_4-1719978728927.png

    Best Regards,

    Sunshine Gu

  • CU05082214-0 Profile Picture
    on at

    Thanks. I was able to get it to work this way.

    BelindaH_0-1720461081795.png

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard