cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

Conditional Statement Needs to Check 2 Separate D365 Entities

I have a conditional statement that requires checking 2 different entities, then sets the Company Type if the conditions are true. Here's basically how it goes..

 

If company type=prospect AND loan stage=terms, set the company type=lead

 

I'm able to check 1 entity for its value, but I can't seem to figure out how to check 2 different entities before updating the company type value? Can someone help?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Hi @abm ,

 

Please refer to screenshot below to create the flow:

1.png 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

10 REPLIES 10
Highlighted
Super User III
Super User III

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Hi @saturation 

 

Could you post your flow screenshot?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Resolver I
Resolver I

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Here's the flow without the Company entity. It checks the loan entity for a stage, then updates the company type (which you can't see but it's in the update section). But I need it to check the loan entity for a stage, but also check the company type to see if it's a 'prospect' and if it meets both conditions, set the company type to 'lead'

 

MS Flow Example.png

Highlighted
Super User III
Super User III

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Hi @saturation 

 

Thanks for the screenshot. 

 

So after the condition under the yes you need to do retrieve the second entity record. Then check the condition for company type. To retreive the second entity you need the Id (GUID) of that record. Have you got any relationship between two entities?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Regular Visitor

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Yes, the companyid is stored on the loan record. So basically, connect again except to the company table using the companyid from the loan, check that company type, and then do an update record? I guess I was just confused on whether or not you could combine the conditional statements together rather than doing one, then doing the other...I'm a newbie 🙂

Highlighted
Super User III
Super User III

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Hi @admind365  & @saturation

 

In this scenario you can't combine in one condition. You need to retrieve it separately. 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Super User III
Super User III

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Hi @saturation  & @admind365 

 

If the below reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Community Support
Community Support

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Hi @saturation ,

 

Please refer to screenshot below to create the flow:

1.png

 

Best regards,

Alice       

 

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

Highlighted
Super User III
Super User III

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Hi @v-alzhan-msft , @saturation  & @admind365 

 

The only issue with the below solution is if the first condition is not satisfied (using the triggered context value) then the next step 'Get Record' is an unwanted round trip to database.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Community Support
Community Support

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Hi @abm ,

 

Please refer to screenshot below to create the flow:

1.png 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

Highlighted
Resolver I
Resolver I

Re: Conditional Statement Needs to Check 2 Separate D365 Entities

Thanks everyone! That last solution worked - Putting the conditional inside the first conditional. Exciting stuff!

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,525)