cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UsmanAziz
Regular Visitor

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

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
yashag2255
Dual Super User II
Dual Super User II

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!

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

 

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
Community Support
Community Support

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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,987)