How to make the catalog variable’s choice value populate the same choice in the catalog task field?

wefw
Tera Contributor

Hi,
I need to map a catalog item variable choice (for example, Priority: Low/Moderate/High) to a corresponding field choice on the generated catalog task field (Priority: 4-Low, 3-Medium, 2-High).
Can anyone please let me know the best way to achieve this in Flow Designer?

i tried this script in create catalog task step for priority field, but not working

var pr = fd_data._1__get_catalog_variables.priority;


if (pr.priority == 'Low') {
    return '4';
} else if (pr.priority == 'Moderate') {
    return '3';
} else if (pr.priority == 'High') {
    return '2';
}
   
2 REPLIES 2

GlideFather
Tera Patron

Hi @wefw,

 

you can do it no code :))

 

On the record producer's variable there is a field "Map", mark it true, a field to map will occur:

GlideFather_0-1761764843142.png

Then your variable needs to have the same values as the backend field. Both shall be of same type (choice - choice, string - string, reference - reference etc.)

 

If it is catalog item and not record producer, for some reason this map and field are hidden on the form.

 

Let me know if you managed this

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


wefw
Tera Contributor

Hi @GlideFather 

it's a catalog item

wefw_0-1761768008473.png