cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Admirnev91
New Member

Using 'Conditions' with 'Send email with options'

I have a Send email with Options action with the following custom options: Delete File, Do Nothing

 

My next step in the flow is a condition where the first field is Selected Option, middle field is, is equal to and the third field I am a little stumped on. I first tried manually typing in Delete File without using dynamic content, which if it matches the selected option of Delete File, would lead to the following action of deleting the file. I ran the flow and the option was selected to delete, but the file was not deleted. 

 

Admirnev91_1-1655483216913.png

 

 

I also tried fx String('Delete File')   <-- maybe the syntax is incorrect, but what do I need to do for my flow to delete a file if the user chooses to delete. 

 

Admirnev91_0-1655482685213.png

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Admirnev91
New Member

Welp.. there was a typo in options field of the Send email with options. It is good to go now. 

 

Although, I had two files and selected delete on both, but only one of them were deleted. Do I need an Apply to each action?

View solution in original post

2 REPLIES 2
Admirnev91
New Member

Welp.. there was a typo in options field of the Send email with options. It is good to go now. 

 

Although, I had two files and selected delete on both, but only one of them were deleted. Do I need an Apply to each action?

Hi @Admirnev91 ,

 

If you have multiple files that are from the previous actions like a "Get files", if you select the file id in dynamic contents of the delete file action from outputs of the Get files, you should be able to see the Apply to each being added to the flow automatically.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,243)