I am using GetDynamicValueProperties activity to parse JSON data in 2013 workflows in visual studio. I can access the title field by using “d/results(0)/Title”. But now I want to use variable instead of 0 at index. Can anyone help on this?
Hey Nikhil…
After successfully figuring my way through the problem I was fighting with, I came across this post and wanted to come back to it later, which I am doing now…
See this link: Â http://www.threewill.com/sharepoint-2013-app-workflow-more-weird-parts/
The applicable part is that the author is pushing the entire results set to a DynamicValues collection and then loops through that set.
I believe this is the answer to your problem…
Nikhil…
A little more detail here…
Check this out…
http://www.threewill.com/sharepoint-2013-app-workflow-more-weird-parts/
Also…
http://www.jrjlee.com/2015/01/custom-workflow-activity-for-getting.html
I believe the first one may help you out more…
The GetDynamicValueProperties is a more simple, bulk approach to the process… Â GetDynamicValueProperty is intended for specific properties on individual rows (which is what you are looking at).Â
Let me know how it goes.
Alsoo
Hey Nikhil… Â I’m working in Visual Studio 2015 and SharePoint Online myself.
I ran into the same problem… Â I believe you can use workflow variables in the GetDynamicValueProperty activity. Â I chose a slightly different route of using REST to retrieve a single item instead of many results. Â In my case, I’m trying to get the Guid of a pre-existing list so I can use the LookupSPListItem to retrieve some index data…
So, instead of querying for many results, I’m retrieving the individual result that I need and grabbing that.