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

Multiple Conditions entries

I have a task where if an email come's the inbox it will extract all the attachments to a file system.  I have the flow created and setup and works fine. So the condition i setup is if the email 'From Ends with @domain1.com it will extract the attachments to said folder A and if it doesn't come from @domain1.com i want it to extract the attachment to said folder B.

 

But i need to add multiple domains in the string from Ends with, so for example emails from @domain1.com @domain2.com or @domain3.com or at @domain4.com go to folder A and anything else extracts the Attachments to Folder B.

 

Any thoughts on how to accomplish this, i'm wondering if i cant just script it in advanced mode but i am unsure of how to do the syntax for that.  Example of what the syntax looks like: @endsWith(triggerBody()?['From'], 'domain1.com')

 

Any help would be much appreciated!!

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @Anonymous,

 

If you could have the whole email address that the email sent from, then this could be achieved with the Switch feature

Capture.PNG

 

But with only the domain, I would think that this need to be achieved using multiple conditions. 

 Capture.PNG

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-monli-msft
Community Support
Community Support

Hi @Anonymous,

 

If you could have the whole email address that the email sent from, then this could be achieved with the Switch feature

Capture.PNG

 

But with only the domain, I would think that this need to be achieved using multiple conditions. 

 Capture.PNG

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,742)