cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CRMPowerapps
Helper II
Helper II

Expression with dynamic values from dynamics 365

Hello Community!

 

I have built a flow connected to our dynamics for sales environment. The flow is creating records for each Accounts which has been selected. When the records are created the flow is also set defined values in some of the fields. But what I would like to do is to set a specific value in a field based on another field value.

 

 

The field I want to populate is Field A.  And I want to look at Field B which is a option set field and has three options (1,2,3). And based on the value selected in field B I want to set Field A to be equals to either field C, D or E.

 

So if option 1 on field B is selected- set Field A Equals to Field C. If option 2 is selected, set Field A Equals to D. And if option 3 is selected, set Field A Equals to E.

 

Could anyone help me how I can write my expression?

 

Thanks in advance!

 

Best Regards, 

Emma

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @CRMPowerapps 

 

If it is a multiple selection field, your requirement couldn't be achieved since we couldn't compare the multiple selection field.

 

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

3 REPLIES 3
v-alzhan-msft
Community Support
Community Support

Hi @CRMPowerapps ,

 

Take a try with expression below(Replace the dynamic content with your own expression):

if(equals(B value dynamic content,option1),C dynamic content,if(equals(B value dynamic content,option2),D dynamic content,E dynamic content))

 

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.

Hello @v-alzhan-msft 

 

Thanks for your suggestion. I get the message "invalid expression". I forgot to mention that Field B is a multiple option set. Does this change anything? and aslo that field A is one entity, Field B another entity and also C is another entity.

 

BR, 

Hi @CRMPowerapps 

 

If it is a multiple selection field, your requirement couldn't be achieved since we couldn't compare the multiple selection field.

 

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.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,032)