cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
UsmanAziz
Level: Powered On

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

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 🙂 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

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

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!

View solution in original post

4 REPLIES 4
Dual Super User
Dual Super User

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

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
Level: Powered On

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

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

 
Dual Super User
Dual Super User

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

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!

View solution in original post

Community Support Team
Community Support Team

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

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.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,984)