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

wefw
Tera Expert

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';
}
   
1 ACCEPTED SOLUTION

Hi, I have changed the variable backend values with task field choice values. its working now

thank you

View solution in original post

4 REPLIES 4

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! */


Hi @GlideFather 

it's a catalog item

wefw_0-1761768008473.png

 

Hi @wefw,

 

there is this client script (on the left) which hdies that field. Once deactivated the field is visible.

 

So it would require to temporarily deactivate that CS, managed the item and then revert the CS:

 

When inactive:

GlideFather_0-1761813319318.png

 

When active:

GlideFather_1-1761813326328.png

 

 

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


Hi, I have changed the variable backend values with task field choice values. its working now

thank you