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

Apply to each created when pulling "To" email address from SharePoint list

I'm attempting an automated Approval workflow based on a PowerApp.

 

I have two SharePoint Lists

 

Employee Vendor Requests - requests are added via a PowerApp

Approvers - List of approvers with columns for Country, Name, Role (Financial Approver or Data Steward) and Email

 

When I select the UserNameEmail column an Apply to each field is automatically created. That doesn't seem like it should be a problem, but the Send email from shared mailbox choice never runs when I check Flow history and I'm not sure why.

 

7-23-2020 4-50-19 PM.png7-23-2020 4-50-27 PM.png7-23-2020 4-50-33 PM.png

 

The apply to each value is 'body('Get_Finance_Approvers')?['value']

 

The UserNameEmail value is items('Apply_to_each')?['UserNameEmail']

 

This is kicking my butt, any help would be greatly appreciated.

1 REPLY 1
JohnAageAnderse
Memorable Member
Memorable Member

Hello @awoodyyc 

The action "Get_Finance_Approvers" says it all. You are getting a collection of approvers, so using any dynamic information from it will create an "Apply to each" 👌

 

Use a variable to collect the email addresses from "UserNameEmail" and use the variable in the To field.

Kind regards, John

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,719)