Setting the Cat or Sub Category form the incident form

Roshni1
Tera Expert

We have our incident form that "Issue related to" field matches the Category. When a users submit the form I would like the Category to be updated. 

 

Currently in my record producer I have a script that should pull the category into the incident table but it is not. 

 

Am I missing something in my script or should this be done by a BR? 

 

Any help is appreciated. Thank you ! 

Attached some screen shots.

 

1 ACCEPTED SOLUTION

GlideFather
Tera Patron

Hi @Roshni1 

 

if it is a record producer, you can map that variable.

Navigate to the record producer, select the variable "What is the issued related to" and do following:

  • Mark "Map to field" true,
  • then a new field called Field will occur and select your field there (Category):

KamilT_0-1753134378489.png

 

But remember that Category has some choices so your variable should be 1:1 with the same values, check sys_choices with the variable choices to have the same names, labels are not important but the names are

 

Let me know if you managed it with this

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


View solution in original post

5 REPLIES 5

GlideFather
Tera Patron

Hi @Roshni1 

 

if it is a record producer, you can map that variable.

Navigate to the record producer, select the variable "What is the issued related to" and do following:

  • Mark "Map to field" true,
  • then a new field called Field will occur and select your field there (Category):

KamilT_0-1753134378489.png

 

But remember that Category has some choices so your variable should be 1:1 with the same values, check sys_choices with the variable choices to have the same names, labels are not important but the names are

 

Let me know if you managed it with this

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


Thank you that worked perfectly... 

Fantastic, thank you for your confirmation! 

 

Tip: be careful, I remember that variable (example name "my_variable") after using this mapping changed its name to the mapped field, in this case "category" and if you would have any scripts for the field they would stop working and must be reviewed and adjusted... so use it well and be careful :))

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


Ok thank you for that tip... Will keep that in mind while testing.