Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SPD Workflow Get Items from Dictionary unhandled exception

$
0
0

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.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>