cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Flow that sends an e-mail to people populate from other list

Hello,

 

I have a flow that send an e-mail to Approvers of an item and recently got a request to create also flow for Controller assigned to particular Country. Approvers are populate by person who is creating an item but Controller is auto-populated by another flow from other list where I have mapped which Controller should be assigned to which Country. 

 

Problem is that when I tried to apply exactly the same logic as for Approvers flow, it fails with below message:

Iweta_0-1601030827793.png

(Delay 30 second is addes so other flow have some time to auto-populate Controller name into the list)

 

I noticed that in Approvers flow I have expression 'items':

Iweta_1-1601030968125.png

 

while for Controllers when I pick up the field it's always 'triggerbody':

Iweta_2-1601031059404.png

 

That's the only difference between these 2 flows. The one for Approvers is working, the one for Controllers is not (as per screenshot with error above). Perhaps because Controller is mapped I should add something else (except of delay)?

 

I appreciate any help!

Thanks a lot!

 

Cheers

Iweta

3 REPLIES 3
analmei
Community Support
Community Support

Hello,

If I understand correctly the flow is failling because the variable 'FinancialController' is empty. 

The value of this variable depends of the 'Approvers flow', that run before, and even with the delay action, the second flow don't have the value of variable when needed. 

For that reason, I suggest you implement a If condition to verify if the 'FinancialController' is present.

 

Please let me know if I was able to unblock you. 

Ana Almeida | Power Platform Support Engineer

 
Anonymous
Not applicable

Hi @analmei

 

Many thanks for you reply but I am afraid it is not the case. Field Financial Controller gets correctly populated from another list. It is not empty, I can assure your. Therefore, I don't understand why flow sees it as empty...

analmei
Community Support
Community Support

Hello, 

Thanks for your reply. 

What is the 'Financial Controller'? Is it a record in SharePoint?

Can you make sure the Email field is filled?

If possible, can you show the definition of 'When a new item is created' and 'Apply to each2'?

 

Ana Almeida | Power Platform Support Engineer

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (2,207)