Processing a search case operation result
A search case operation result is often used with an update case operation. Since an array is returned in a search case result, you would use JavaScript to iterate through each element of the array and perform multiple updates.
About this task
Follow these steps to make multiple updates using a search case result.
Although this topic is about a search case, it could also be applied to a retrieve case. For example, you could search for a case and for each case reference returned perform a retrieve to get the properties of each case instance. You could look upon this example as a pattern that can be used any time multiple case references need to be processed.