I'm trying to create a simple multiple stages approval workflow on a Document Library which has 3 three different custom content types. Whenever user will upload a document, he has to select a content type and based on the content type the stage of approval changes.
So I tried to use a condition of "If any value equals". In this condition I tried comparing the name of the content type but it gives an exception whenever the workflow is triggered.
Exception: RequestorId: 2d2c973d-36a2-a2e5-c3f3-5cd009206e97. Details: System.InvalidCastException: The value 'd/results(0)/ContentType' cannot be read as type 'String'. at Microsoft.Activities.GetDynamicValueProperty`1.CheckedRead(String propertyName, DynamicItem value) at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
I even Tried comparing the content type ID of the current list item but its never goes into the if block even if the user selects the right content type.
Any help/suggestions would be highly appreciated.
Thanks
Mickey.