Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Create a flow that can pick characters from shared mailbox and send a message in Teams group

(0) ShareShare
ReportReport
Posted on by

Hi everyone, 

 

Can someone please help me to create a flow that can pick up the names from the email received in the shared mailbox and then send a customized message in a team's group chat? 

 

Requirements:

 

- The message includes the names.

- Names are known so we can put the names and flow can check for that names in the email and if match then picks up. 

 

Thanks in Advance. 

 

Regards, 

 

Viv

  • Verified answer
    Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    Hi @Anonymous ,

     

    Add a Condition control to check if the array is empty:

    vzhoqianmsft_1-1682475562789.png

     

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    I mean that if the flow identified the names then it will send a message including the name and everything and if there is no name match in the email then It will send a message saying - "there is an email for you to look at shared Mailbox)

  • Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    Hi @Anonymous ,

     

    I don't quite understand "user different message for each condition".

     

     Do you want to set different Teams message for each name? If so, you can set them in Yes branch of Condition.

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    Hi Habsburg,

     

    I want to user different message for each condition. 

     

    Regards, 

     

    viv

  • Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    Hi @Anonymous ,

     

    We can concatenate them into a string, if there is no name, it will be blank.

    join(variables('arr'),', ')

    vzhoqianmsft_0-1682317875357.png

     

     

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    When there is no name in the flow then it says the flow has failed. Instead of returning null and making flow fail. Can we just add another Post message thing that can just message 'There is an email for you to look at'?

  • Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    Hi @Anonymous ,

     

    I just demonstrate the situation of two names in the test. Even if you have many names, they are all placed in the variable "arr", you can put the whole array into the Teams action.

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    I used multiple names nearly 3-4 names ( have a list of 10-15 names to match) but it is only picking 2 names. how do we add more variables in the message send to Teams

  • Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    Hi @Anonymous ,

     

    Change to "is not equal to" in "Condition" action:

    vzhoqianmsft_0-1682303824828.png

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Re: Create a flow that can pick characters from shared mailbox and send a message in Teams group

    Another issue I just picked out is that even if the name is not there in the email, it is still sending messages with the names.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard

Featured topics