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 Unique Voucher Co...
Power Automate
Unanswered

Send Unique Voucher Code To Different Emails Using Email Template

(0) ShareShare
ReportReport
Posted on by

Hello,

 

Super new to automate, but can't seem to get this to work. Basically I just need to send unique voucher codes from an excel sheet to different emails using an email template.

 

Basically take row 1 of the voucher sheet and the email from row 1 of the email sheet and send an email with that code using a template. Then iterating to the next row and so on.

 

Please advise, thanks in advance!

Categories:
I have the same question (0)
  • ivan_apps Profile Picture
    2,187 Moderator on at

    What I would do is to iterate through your first excel sheet with email addresses (using the excel connector).  At the end of this loop, create your email template to send to that email address with the voucher code.

     

    Inside the loop I think the easiest thing to do is to query the voucher sheet, select your table inside the excel and get the first row. Create another column in you excel sheet for 'used' voucher codes. When you query the excel sheet, ensure your 'used' column isn't yes/true.  Once you send the email, update your excel sheet to update the 'used' column to true. As you loop through your email list, you'll be updating the voucher list marking vouchers as used or not. Your query for new vouchers at each loop should only return 1 unused voucher at a time.

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard