function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Priyadarshi NayakPriyadarshi Nayak 

Initialize Flow Collection Variable to a static number

Hi
I have following scenario to be implemented. 

The screen will ask the user how many no of contact it wants to create for an account.
Based on the input number, Contact screen has to be interated in a loop. So the loop collection variable should have same no of element equal to the number entered by user in forst screen.Any pointer how can I achieve this?

Now I am not finding any way to set the collection variable the number element I want to create contacts.

Any help is welcomed.
Thanks
Priyadarshi
Abhik SahaAbhik Saha
At least now you can use Custom Metadata Types to get desired default values. Also previously hierarchy custom settings werre available. Please refer to this for CMDT approach:
https://trailhead.salesforce.com/en/content/learn/modules/custom_metadata_types_dec/cmt_flows