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 / How to send messages i...
Power Automate
Answered

How to send messages in Teams only if you create an HTML table

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I would like to create an HTML table in Excel on SharePoint and post a message in Teams only when both conditions A and B below are met.

 

Condition A: Create an HTML table only for rows where a specific column in Excel is blank and other columns are filled in.
Condition B: When a specific user updates Excel(specify user's email address)

 

I've built a flow, but messages are posted in Teams even if the HTML table is not created.


Also, when I tried setting condition A using the "Condition" flow, Apply to each was automatically inserted and a large number of Teams messages were posted.

 

Could you please let me know if there is a solution?

 

The flow I built and the message posted to Teams are below.

 

20240119-01.png

 

 

 

 

 

 

 

 

 

 

 

 

20240119-02.png

 

 

 

 

 

 

 

 

 

 

 

 

 

20240119-03.png

 

 

 

 

 

 

 

 

 

 

 

 

 

20240119-04.png

 

 

 

 

 

 

 

 

 

 

 

20240119-05.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Message posted to Teams when HTML table is created

20240119-06.png

 

 

 

 

 

 

 

 

 

 

 

 

Message posted to Teams when HTML table is not created (I would like to prevent this message from being posted)

20240119-07.png

 

 

 

 

 

 

 

 

 

 

 

 

Any guidance would be much appreciated.

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

    Hi , @Patricia11 

    Do you mean you when you "Select" action return null , you do not want to post the message to Teams?
    If this , you can use this condition in your side:

    vyueyunmsft_0-1705978226855.png

     

    length(body('Select'))

     

     

    If I misunderstand what you mean, you can describe your needs and your expected outcomes in detail so that we can better help you. If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • Patricia11 Profile Picture
    on at

    Hi @v-yueyun-msft ,

     

    Thank you for your reply.

     

    I don't want the message to be posted to Teams when the "Select" and "Create HTML Table" actions return the image below.

    20240123-01.png

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    When I added "length(body('Select'))" to the condition, the following error message was displayed and I was unable to save the flow.

    "Saving flow failed with code 'InvalidTemplate' and message 'The template validation failed: 'The action(s) 'Select' referenced by 'inputs' in action 'condition' are not defined in the template.'.' .”

     

    20240123-03.png

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     


    Could you please tell me how to solve this problem?

    I apologize for the inconvenience, but I would appreciate your guidance.

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

    Hi , @Patricia11 

    You need to update the action name in your side.

    vyueyunmsft_0-1705987773911.png

    Best Regards,

    Yueyun Zhang

  • Patricia11 Profile Picture
    on at

    Hi @v-yueyun-msft ,

    Thank you for your detailed explanation.

    I was able to successfully build the flow and successfully tested it.

    Thank you very much for your help.

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 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard