Hello everyone!
I am working with a SharePoint 2013 workflow on SharePoint 2013 Online/O365. I am using the Call function to use the Rest API to pull information from list items. The problem I am running into, which my be a very noob issue since this is all new to me, when storing the field "AssignedToId" to an Integer or any other datatype for that matter, I get the error from SharePoint (Workflow Status)
"An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InvalidCastException: The value 'd/AssignedToId' cannot be read as type 'Int32'. 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) Exception from activity GetDynamicValueProperty<Int32> Get Test Tasks Sequence Flowchart Sequence LogTasks2013.WorkflowXaml_f285bc9f_2207_4c43_a8f7_8db32daa2c6f"
This is what is returned when I call the list item, JSON headers, for the AssignedToID feild.
AssignedToId:
Then i do the following:
"Get d/AssignedToId from "JSONresults" (output to AssignedToId[type=Int])
I don't need "results" between "d/" and "AssignedToId' since I am calling the list item directly. I am able to store in a variable anything else I need from the REST results including "Edm.Int32" just not any field that uses the type "Collection(Edm.Int32)".
Any help is greatly appriciated. Please let me know if any additional information is needed.