cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
studyri10
Frequent Visitor

Send email with option html message but useremailaddress return null

Hi all,

 

I use action 'send email with option' with html message.

But I would like to document who is the responder, I check the 'useremailaddress' return with null.

studyri10_0-1648288563537.png

If I use action card then I can see the useremailaddress. But I need use html format message..

Is anyone have suggestions?

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions

According to the follow response (26-10-2020 02:42 PM), it is currently not possible to get the responder:

Unfortunately, we do not support an option to get the responder from the Send an Email with options. You might want to create an idea here if it is not already there...

https://powerusers.microsoft.com/t5/Building-Flows/Send-EMail-with-Options-Who-responded/m-p/729163/...


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

 

 

 

View solution in original post

14 REPLIES 14

According to the follow response (26-10-2020 02:42 PM), it is currently not possible to get the responder:

Unfortunately, we do not support an option to get the responder from the Send an Email with options. You might want to create an idea here if it is not already there...

https://powerusers.microsoft.com/t5/Building-Flows/Send-EMail-with-Options-Who-responded/m-p/729163/...


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

 

 

 

dhofstra
Frequent Visitor

I was facing this same problem (trying to capture the approval response, email address, and a timestamp of the approval generated from "Send Email with Options").  It seems the solutions everywhere on the web are like what is stated in this thread (which is:  the connection does not allow to get the responders email).

 

I did find a solution to this problem:

  1. I run "Send Email with Options" in an "Apply to Each".
    1. The "Apply to Each" is cycling through an array of email addresses
    2. I set concurrency on the "Apply to each" so that all the emails are sent at the same time (instead of going in order and waiting).
  2. Within the "Apply to each", I also append an array variable to capture each approval.
  3. The trick is:  within the array variable, instead of using the dynamic "UserEmailAddress" field (which does not work due to the connection not having that functionality), I added the "Current Item" from the Apply to each, which is an email address.   
  4. This works perfectly, and attributes the correct email address to the correct approval.  The array variable is then converted into a nice HTML table later in my flow.

Picture of PA solve send email with options record approval.jpg

@dhofstra 

I am having a similar problem with flow and trying to understand what you exactly did to make yours work. Would you be able to help me out?

I'm trying to get the name of who responded so I can update an item to have their name be in my SP list under the 'Approved By' column.

I'm happy to try to help you however I can.   I would need to understand more about what exactly you are trying to do, and what issue you are encountering specifically.

 

My post above describes a process for the "Send an Email with Options" action, where you are able to put that action inside an apply to each that is run with concurrency.   Then you can capture each emailed user as well as their unique individual responses into an array.   

 

The resulting array contains a record of each emailed user's actions, and you can easily use the data from that array for any purpose you like later in the flow.   For example, I format a HTML table to summarize the approvals, but you could also filter the array and produce an email address into a SP list column like you are describing.

 

This is all in relation to the "Send and Email with Options" action, which is only really useful for obtaining Approvals from external persons.   For internal persons, the built in Approval actions are much more versatile and they already do the functions described above naturally. 

I am sending a email to a group with "Send an Email with Options" and I want to get the user who selected an option. I was trying to replicate yours but was having no success. Are you using two different variables for the process? If you are what type of variables are they?

 

  1. I have a single line of text field, which is a semicolon delimited list of email addresses
  2. Since users mess up entry all the time, I clean up that single line of text to remove any spaces or commas with semicolons (using a replace expression)
  3. I use the functions shown below to transform that single line of semicolon delimited email addresses into an array:
    1. dhofstra_0-1672955463414.png
  4. The actual "Send Email with Options step" is going through the array formed above, and updating each value into a 2nd array for the user repsonses, as shown below:

    1.  

      dhofstra_1-1672955592366.png
  5. The actual text in the Append item shown above is:

    1.  

      {
      "Approver": @{items('Apply_to_each_ExternalUsers_Approval_Array')},
      "Requested DateTime": @{outputs('Compose_Date_of_Email_to_ExternalUsers')},
      "Response DateTime": @{concat(convertFromUtc(utcNow(), 'Eastern Standard Time', 'g'), ' (EST)')},
      "Decision": @{outputs('Send_email_with_options_for_ExternalUsers_Approval_Array')?['body/SelectedOption']}
      }
  6. Concurrency is set on the Apply to Each, as shown below:
    1. dhofstra_2-1672955844314.png

       

Does this make better sense?   I see now that the original screenshots I posted did not make it very clear that there were actually 2 arrays being used. 

Are the email addresses entered in one row or is it a new row per email? How are you making the single line of text field delimited? Can you share your expression you used in the filter array?

I have a single line of text column in Sharepoint where end-users are able to enter email addresses for this flow.   The end-users are instructed to type multiple email addresses with semicolons to delimit the field.   Since users type this wrong very often, I have a step in the flow which removes any spaces and replaces an commas the end-users type with a ";".    That is enough to resolve 99% of the issues with the user input.  It's easy to do this with replace expressions.

 

There are many different ways to get email addresses from a user into PA, but the main gist is that you would want to form a string of email addresses separated with semicolons.   I want the concatenated and semicolon separated string for other reasons in the flow, so I keep it in the variable named "Var_Lvl1_ExternalApprovers_Concat" to hold this string.

 

For the send email with options effort, I wanted the users to be in an array instead of a string.   The image in #3 of my previous post is a section devoted to converting this string into an array.   The filter step is just filtering out any blank items in the array (I think the compose step oftentimes results in a blank array item at the end).   The equation in the filter step shown is @equals(empty(item()), false)

 

 

 

 

Thank you so much for the help. It has helped me get my flow working in the manner I want.

Hi @dhofstra 

 

I am using the send email with option in power automate, to send an approval email, and it works fine, I can capture the response from the approval buttons and fill a column in a sharepoint list.


But I would like to also capture in a sharepoint list, the email or username of the person who selected the approval buttons, since these approval emails are intended for several different users.
I would greatly appreciate any point to take into account.

Hi @dhofstra 

 

The mail will be sent to several people, when an item is created in the SharePoint list, when any of them approves it, I would like to know who it is, capturing the name of the approver and registering it in a column in the same SharePoint list.

 

The flow doesn't fail, but it fails to capture the approver's name and place it in the appropriate SharePoint column, the column is left blank.

 

I only manage to capture the response of the default buttons, of the send email with options option.

There are several ways to do this. I watched a video that Reza made on approvals and found his solution a good base for what I was trying to do.

 

Essentially I made an "Apply to each" response step after the wait for an approval step.   This Apply to each selects the responses, and for each response, it Appends an Array variable with the Approver information.   You can then format that array variable into HTML like Reza shows in the video.   Here is the apply to each step I am explaining here:  

dhofstra_0-1684342482234.png

 

The PA Flow then stores this HTML table into a sharepoint field, here is an example of that approval record with 3 different approvers recorded: 

dhofstra_1-1684342616707.png

 

Hi @dhofstra 

 

Thank you very much for your kind answer, I was thinking of using a Send email with options scheme.

 

I don't know if I can do it with this scheme

It seems to me that I am doing something wrong, I apologize for my constant consultations on the same subject.

 

Greetings.

 

Exiled_0-1684351535112.png

 

It's really a similar exercise on the send email with options usage. You just wrap the send email with options together with an append to array variable, and you capture all the same datapoints.   Here is the send email with options method of recording approvals: 

dhofstra_0-1684354326639.png

 

after that apply to each is finished, you can create a HTML table

dhofstra_1-1684354378151.png

 

and then style the HTML table (borrowed styling from Reza's videos)

dhofstra_2-1684354406368.png

replace(replace(replace(body('Create_HTML_table_ExternalUser'), '<table>''<table border="1px solid #ddd" width="100%" '), '<td>''<td style="padding:10px">'), '<th>''<th style="padding:10px">')

 

That styled table then can be saved to a sharepoint list just like I showed in the last reply using the approvals workflow.  

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (992)