cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Condition comparison with dropdown value

I have a drop down list in my form. In the workflow, I wanted to check if value selected in the dropdown = "selected value".

 

I added the condition action, however the workflow is not allowing me to save giving me an exception error below.

 

Error publishing workflow. Unable to cast object of type 'System.Activities.InArgument`1[System.String]' to type 'System.Activities.InArgument`1[Microsoft.Activities.DynamicValue]'

 

So instead i tried to query list item for the drop down value and store it as a variable and do a variable (collection) comparison with the selected dropdown value which was set as a variable.

Now i can save the workflow but the condition check doesn't work.

 

Any advise would be good. This should be straightforward but I can’t seem to figure out.

0 Kudos
Reply
3 Replies
Workflow Hero

Re: Condition comparison with dropdown value

Is it a lookup or Choice field?

Also if you could maybe share some screenshots that might help a lot in understanding the problem.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Condition comparison with dropdown value

Hi, We are also having the same issue. Could you please provide the solution for the issue? We have a Choice field here and using Conditional Branch to compare the values and have separate loop of actions according to the combination of selections. I have attached the screenshot of conditional branch. It would be great if you could help us on this.

Tags (1)
0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Condition comparison with dropdown value

It's a long shot, but maybe it is related to the ampersand (&) in the choices?

0 Kudos
Accept as Solution Reply