Hello, I am using a SharePoint Designer 2013 workflow attempting to use the "Get Items From A Dictionary" on JSON data obtained through a web service but it is always giving the error:
System.InvalidOperationException: Indexing by an integer value is not supported on an instance of 'Microsoft.Activities.Dynamic.DynamicPrimitive'. at Microsoft.Activities.Dynamic.DynamicItem.get_Item(Int32 index)... (etc...)
The JSON data which I retrieve is as follows:
[
{"RecipientID":"xxxxxxxxxxx","FirstName":"xxxxxxxx","LastName":"xxxxxxxx","Email":"xxxxxxxx","ExternalDataReference":null,"Unsubscribed":"0","EmbeddedData":[]}
]
Get Items From a Dictionary is used with the following inputs:
Get (0)/FirstName from Variable: PanelMembers (Output to Variable: CurrentFirstName)
Where (0)/FirstName is just text PanelMembers is of type Dictionary andCurrentFirstName is a string.