- Learning Salesforce Visual Workflow and Process Builder(Second Edition)
- Rakesh Gupta
- 472字
- 2021-07-09 20:57:37
Creating a collection variable
Collection variables are used to store multiple values of similar data types; for example, a group of e-mail addresses. Once you have populated a collection variable with values, you can use it throughout the Flow.
Here is a business Scenario: Helina Jolly is working as a system administrator for Universal Containers. Currently, she is developing a Visual Workflow and wants to create a variable to store customers' e-mail addresses to send out an e-mail to them.
To create a collection variable in your Flow, follow these instructions:
- Navigate to Setup | Build | Create | Workflow & Approvals | Flows.
- Click on the New Flow button; it will open the Flow canvas for you.
- Then navigate to the Resources tab and double-click on Collection Variable, which is available under the CREATE NEW section. It will open a window for you, where you have to enter the following details:
- Unique Name: Enter the unique name. The name must begin with a letter, and use only alphanumeric characters and underscores. Uniqueness applies only to elements within the current Flow. In this case, enter CovEmailAddress.
- Description: Write some meaningful text so other developers/administrators can easily understand why this Collection variable was created. When you select a collection variable in the Explorer tab, then the description appears in the Description pane.
- Data Type: This determines which types of value variables can be stored. Select the data type of Text. The available data types for variables are as follows:
- Text: This is used to store any combination of letters and numbers.
- Number: This is used to store any numbers.
- Currency: This is used to store currency.
- Date: This is used to store the date.
- DateTime: This is used to store the date with the time.
- Boolean: This is used to store either true or false.
- Picklist: This is used to store a picklist value. It supports the ISPICKVAL() function in flow formulas.
- Picklist (multi-select): This is used to store multi-select picklist values.
- Input/Output Type: This defines whether a variable is available within the Flow or can also be accessed outside the Flow. Different input/output types are as follows:
- Private: This variable can be allocated and used only within the Flow.
- Input Only: This allows you to set a variable at the start of the Flow using Visualforce controllers, URL parameters, or subflow inputs.
- Output Only: This means that you can access a variable's value from Visualforce controllers and other Flows.
- Input and Output: This means that you can set a variable's value at the start and access its value outside the Flow.
This will look like the following screenshot:

4. Once you are done, click on the OK button.
For best practice, in this book we will use Cov as the prefix for a Collection Variable.
推薦閱讀
- 一本書(shū)學(xué)內(nèi)部審計(jì):新手內(nèi)部審計(jì)從入門(mén)到精通
- 新形勢(shì)下中國(guó)投入產(chǎn)出核算的變革與實(shí)踐
- 中國(guó)特色社會(huì)主義國(guó)家審計(jì)制度研究
- EViews10.0的應(yīng)用與計(jì)量分析
- SAP ABAP Advanced Cookbook
- 大數(shù)據(jù)搜索與挖掘及可視化管理方案 :Elastic Stack 5:Elasticsearch、Logstash、Kibana、X-Pack、Beats (第3版)
- AO2011實(shí)用手冊(cè)
- 項(xiàng)目管理實(shí)務(wù)(第二版)
- 政策建模技術(shù):CGE模型的理論與實(shí)現(xiàn)
- Getting Started with Oracle Tuxedo
- Oracle Primavera Contract Management,Business Intelligence Publisher Edition v14
- 內(nèi)部控制審計(jì)功能與質(zhì)量
- 內(nèi)部審計(jì)情景案例:理解審計(jì)行為,辨析審計(jì)決策
- INSTANT IBM Lotus Notes 8.5.3 How-to
- Amazon EC2 Cookbook