AnsweredAssumed Answered

Condition comparison with dropdown value

Question asked by raeville on Aug 9, 2018
Latest reply on Aug 14, 2018 by chanteldup

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.

Outcomes