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
Hi @Anonymous ,
Add a Condition control to check if the array is empty:
Best Regards,
Habsburg Qian
If this post helps, then please consider Accept it as the solution to help the other members find it.
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)
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.
Hi Habsburg,
I want to user different message for each condition.
Regards,
viv
Hi @Anonymous ,
We can concatenate them into a string, if there is no name, it will be blank.
join(variables('arr'),', ')
Best Regards,
Habsburg Qian
If this post helps, then please consider Accept it as the solution to help the other members find it.
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'?
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.
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
Hi @Anonymous ,
Change to "is not equal to" in "Condition" action:
Best Regards,
Habsburg Qian
If this post helps, then please consider Accept it as the solution to help the other members find it.
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.