flow中使用CheckBox Group组件创建多选列表后,用户选择的选项只会保存最后一个。大多数情况我们都需要保存所有选中的值(不然设置单选就好了),但是salesforce不支持,被吐槽好多年了:https://ideas.salesforce.com/s/idea/a0B8W00000GdmdJUAR/allow-flow-variables-to-store-multiple-choices-from-a-multiselect-choice-field
解决方法的基本思路是通过循环将选中的值依次保存到一个collection中。
参考:https://sfdcstudy.org/2021/01/02/collection-convert-from-multi-select-choice/
https://apisero.com/how-to-loop-through-multi-picklist-record-choice-sets-in-salesforce-flows/