Creating child records using Visual Workflow
This will be a quick and dirty overview of using Fast lookups, loops, assignments, and Fast Create elements to iterate through a collection of records and create N number of child records.
Its awesome. Caveat - I brute forced my way through this due to a recent need and cannot say whether or not any of this is “correct”, but it works. There are likely governor limits and what-not that may pop up in production scenarios, and I will try to hit on those where I can.
So the sample use case I will model is as follows - take all of the contacts in an account and add them to a campaign. This requires the following steps
Fast lookup - lookup all contacts in the account and assign them to an Sobject collection of contacts
Loop through the Sobject collection of contacts, and for each record, do the following
-create a Campaign Member Sobject variable record using the contact ID, and a fixed...



