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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (48,522)