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
Solved! Go to Solution.
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.
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,
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.
User | Count |
---|---|
103 | |
36 | |
29 | |
25 | |
16 |
User | Count |
---|---|
136 | |
54 | |
52 | |
36 | |
26 |