Iterating through a list of salesforce IDs

Iterating through a list of salesforce IDs

By: Carousel on Mar 24, 2008

One of the newest components in the Carousel arsenal is the Iterator. True to its name, the Iterator takes a list of salesforce IDs and iterates through the list, invoking a set of mashups for each individual ID (in programmer parlance, it’s like a FOR loop). If you didn’t get all that, let’s look at a quick example. Say you send the Iterator five Account IDs and you’ve mashed the Iterator up to a Summary Table. The Iterator sends the first Account ID in the list to the Summary Table (which would download Account data for that ID and then process any mashups set up on the Summary Table itself), then the second Account ID, and so on until all five IDs are done.

Now, why is this important? So far, we’ve never had a way to programmatically handle salesforce data. This component allows sequential data processing with a large number of salesforce records. The current version of Iterator is designed to iterate through standard and custom salesforce object IDs. There is a feature request to do the same for entire standard arrays. This feature is in the roadmap (as always, please let us know if you need something like this).

Advanced Tips and Tricks:
While the Iterator is designed to handle only a list of salesforce IDs, a list is really just a delimited stream of data. If the stream passed to the Iterator is a comma separated list (see Extract Column component in our component reference guide) of, say, Account Names (as long as Account Names do not have commas embedded), the Iterator would just as happily iterate through them.

Happy iterating!


©2007 DreamFactory Software, Inc.     Privacy Policy | Terms of Use | DreamFactory is a registered trademark of DreamFactory Software, Inc. All Rights Reserved.