web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send an email to one o...
Power Automate
Answered

Send an email to one or multiple / Assign a task to one or multiple based on a form question that allows multiple answers

(0) ShareShare
ReportReport
Posted on by 36

Hello all !

I am newbie to Forms / PowerAutomate and I want to "pump up" a form + flow that I created, to be able to send an email to one or multiple / Assign a task to one or multiple based on a form question that allows multiple answers.

My setup is the following :

- The form gathers the answers

- In the form there's a question about "What department is your request about".

Answer can be multiple as a request can be towards more than one department ( 1 to n )

- After creating the Item in a Sharepoint List, I want to Send an Email and Create a Task in Planner.

Sending the email to one "default" person or creating the Task in planner is easy (Thanks to previous forum Q&A 😀)

 

What I am looking for is to send the email to / assign the planner Task to certain people, depending on the answers provided to the "What department is your request about" answer(s).

 

  • I think I need to do a mapping table to have a matching list between department and recipients

Dept A - user1 email

Dept B - user2 email

Dept C - user3 email

... and so on

 

  • Then I think I need create a temp string which will concatenate the emails

If "form_dept_question_value" contains "Dept A" then "Append to" temp string "user1 email"

If "form_dept_question_value" contains "Dept B" then "Append to" temp string "user2 email"

If "form_dept_question_value" contains "Dept C" then "Append to" temp string "user3 email"

 

Next step will be to use the "temp string" content and use it when creating the email and the Planner Task.

This seems the easiest step (assuming I will find easily the temp string system ID 🤣 )

 

I would need support / advice on how to do this in the most easy way

I am a indeed bit clueless on which steps / features / commands I need to use  ... Support & advices would be greatly appreciated !

LionelM_0-1632324838621.png

 

 

 

 

Categories:
I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @LionelM Please use Switch action and based on department send email and create task. 

    Hardesh15_0-1632325465572.png

    Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

     

  • LionelM Profile Picture
    36 on at

    @Hardesh15 thanks for the tip ! I didn't know about this so I gave it a try.
    Good thing : I learned something 😀

    Less good thing : Switch apparently only has "Equals" as test ... and I would need more to find something that behaves as "Contains" ...
    I'll look into more and will keep digging. Thanks for the reply and the direction to investigate

  • Verified answer
    LionelM Profile Picture
    36 on at

    Hello all and to @Hardesh15,

    So I made more investigations and I found a way out of this :

    - Initialize a string variable at the top of the flow (as you cannot initialize it within the "Apply to each"

    - In the "Apply to each", create a parallel flow and use several "Condition" to test if the Answer to the Question contains a text element specific for each of the departments

    If Yes : I append to the String variable the email address, and a semicolon at the end

    If No : I just do nothing

    - Then I can use the content of the String in the Email, or the Create Task, or even in other things (Create post in Teams)

     

    Et voila 🙂 .... My flow has grown a bit, and works quite well 🙂

     

    LionelM_0-1632342709061.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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard