Canvas Apps
![How To Store Choice Value To Collection How To Store Choice Value To Collection](https://i0.wp.com/365stack.in/wp-content/uploads/2021/06/image-3.png?fit=640%2C282&ssl=1?v=1623349389)
How To Store Choice Value To Collection
In this post we will see more in detail about how to store choice value to collection.
- Choice Column Name: AccountType
![](https://i0.wp.com/365stack.in/wp-content/uploads/2021/06/image.png?resize=640%2C300&ssl=1)
2. Choice Values:
![](https://i0.wp.com/365stack.in/wp-content/uploads/2021/06/image-1.png?resize=640%2C301&ssl=1)
3. On Button select do the following expression:
Where EmployeeData is our Table name and AccountType is our choice column. Find Code snippet below.
![](https://i0.wp.com/365stack.in/wp-content/uploads/2021/06/image-3.png?resize=640%2C282&ssl=1)
ClearCollect(
colAccountType,
{TextData: ""}
);
ForAll(
Choices(EmployeeData.AccountType),
Collect(
colAccountType,
{TextData: Text(ThisRecord.Value)}
)
);
4. Finally you can view collection data from view tab.
![](https://i0.wp.com/365stack.in/wp-content/uploads/2021/06/image-5.png?resize=640%2C283&ssl=1)
Comment your queries below for further help. š
0
Tags :