0

Is there a way to add text values to a collection variable from a predefined list? I have a very long list (>100 items) that I want to loop through item by item but I can't find a way to quickly add the values to a collection variable.

For context, my end goal is to add items to a multi-select picklist based on whether a long text field contains any of the values from my predefined list when a record is created.

2
  • 1
    Have you considered Custom Metadata? Commented Dec 5, 2022 at 20:56
  • save the data in a JSON string array (in either Custom metadata or static resource) and then use JSON.deserialize
    – cropredy
    Commented Dec 5, 2022 at 21:31

0

You must log in to answer this question.

Browse other questions tagged .