Seeking a bit of direction as I feel I'm going about this the wrong way. I have a case management repository with thousands of cases assigned to about 100 investigators. It is my goal to create a scheduled workflow run report that does all the math on a monthly basis and sends an Itemized report of how many cases were completed on a by each. Simple counting and automation of a routine report.
Ultimately I'm looking to populate an SQL table with the data so I can mail merge it into a report form template. In order to do this, I need to create a pool of multi variable tokens that are all properly aligned and counted that I can push up into the Sql table.
Example of what I'm doing
So what I am trying to do is parse through the search results and populate my group of multi tokens. If its a new item in the list, I add it. If it is existing I need to find where in the list it exists and change its count up 1. Problem is I can't think of a way to target in on a multi tokens specific index location in order to change it. Seems as though this should be relatively simple thing to do. This would allow me to loop through the search results only once instead of doing multiple loops or a for each of a for each.
I know that I can create a unique list of investigators, then loop through the entire list counting by investigator. A for each of a for each. But my original direction raises the question.
I have set a variable with a value from an index location or iteration. How do I change a value of a multi token at a specific indexed location? Without manipulating the group as a whole.
I compare this to having to update phone number at say index 4 in a group of 10 phone numbers.
Any information/direction would be greatly appreciated.