1

there is a loop element mentioned in Visual Workflow.but in my developer org in which i can create a Flow.when i see palette tab there is no loop element.i can create Apex Classes and Apex Pages with Api Version 30.0.How to create loop element in Flow. please guideline.Thanks :)

there is no sObject Collection in my Flow Resources Tab .here is screenshot of image enter image description here .Please tell why its not showing sObject Collection ??

  • what api version is your org on ? – Samuel De Rycke Jul 11 '14 at 10:18
0

While the visual flow loop element is indeed mentioned in the documentation, it is only available as pilot on spring 14 orgs (api 30.0), but will be generally available as part of the summer 14 release (api 31.0).

See the release notes on page 205.

1

Have a look here (https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_designer_resources_sobject_collection.htm) does this help?

In your resources tab do you have sObject collection? This is what you need to use.

  • i edited question i uploaded screenshot.No i cant see sObject collection in my resource tab. Please respond :) – user133421 Jul 11 '14 at 10:18
1

Since Winter 18, an exciting new feature has hit the tables, which makes it so easy, to deal with loops while working in visual flows.

After a fast lookup,the record count can be easily fetched in a sobject collection variable and assigned to a number variable. Play around with the number variable directly. So finding out the number of open/closed/in progress opportunities gets more easy. Even you dont need to loop through the record set to get the count of records. You already have it before hand.

All you simply need to do is like:

  1. Perform a fast lookup with your required filters enter image description here
  2. Assign the record count to a sObject collections variable. (in screenshot: nofCases)

  3. Use a Assignment step, to assign the variable to a number variable. (Point to note: the assignment variable should be of type number only to make use of equals count operator. In the screenshot, this is called testCount) enter image description here

  4. Voila! Now play around with the assigned variable :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.