From the course: SharePoint Designer 2013: Custom Workflows
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Counting items in a dictionary - SharePoint Tutorial
From the course: SharePoint Designer 2013: Custom Workflows
Counting items in a dictionary
A dictionary might also be a collection of items that are like items. Rather than a mix of different types of rates for example, I could have a dictionary where the first item in it was a particular employee. And then had their name for example, Greg Verden and the amount was Greg's rate. So that I could have a collection of hourly pay rates for employees, the next person in there would be Janet Hayes and it would have Janet's rate and so on. So when I have a collection of like items, or unlike items, one of the things that I can do, is I can iterate through the dictionary and count the number of individual items that are in there. So this is another core action and it's Count Items in a Dictionary. So, I'm going to say then, Count Items in the Dictionary Rates. And it's going to output this to a variable. And you know that variable can be count, which just got created of course by Sharepoint or I can add my own. I might like to even maybe modify the name of this so that instead of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.