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 / Set up flow to send un...
Power Automate
Answered

Set up flow to send unique code from Online Excel whenever a from is submitted in MSForms by Outlook

(0) ShareShare
ReportReport
Posted on by 6

Hi all,

I need to setup a flow where if someone provides their email address and completes the survey in MSForms then they would receive a unique code on their email as a incentive for feedback.

 

I know there is a flow where you can send email to whenever a feedback is submitted.

 

Is there a way where in same email a unique code is added from Online Excel and then sent to the receiver?

 

It is sort of like those feedback you fill and get a dollar coupon. 

 

Any help would be very useful 🙂 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @UsmanAziz 

     

    Yes you can do that. Can you share that this coupon will be a globally unique one for each user who fills the survey form? Basically you need to find a way to map a unique connection between the response and the excel. And if there is no relation and you just have the coupon codes stored in an excel, you can probably create a copy of that excel first and add this to the flow: 

     

    List rows from an excel table action -> select the top count in this action and enter 1. Now in the apply to each loop for the list generated in this action (although there is just one item, an apply to each will automatically pop) you can add the send email action and then add an action to delete that row. This way you can send the unique codes. 

     

    There can be other ways too but this something you can give a try. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • UsmanAziz Profile Picture
    6 on at

    Hi @yashag2255 ,

    Thanks for the info and i tried to set it up but it sends all the codes to the responder email address and doesn't delete automatically from first column 😕

    The coupon setup is one table with a sequence and other row with codes

    Column1Column2

    123243
    234364
    344454
    4656565
    567658
    634434

     

    Any help223.JPG

     
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @UsmanAziz 

     

    In the List rows action, see the Top Count attribute and provide 1 over there. 

     

    Can you expand the delete row action? 

    ffe33.PNG

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

    Hi @UsmanAziz ,

     

    Have your problem been solved?  If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • cmoye Profile Picture
    2 on at

    Can there be a video step by step, or step by step image college of what this looks like. It seems to address an real time hiccup and not how to do this process from start to finish. 😀

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard