Record producer script shows sys_id instead of name of variable

KB30
Tera Expert

I created current.short_description = 'Outage reported at' + producer.at_what_location_is_this_outage_occurring + producer.caller_id;

 

When I submit the record producer but it populates the sys id instead of the value. Both of the producer fields are reference fields so I think this could be the issue.

 

I have another field that is free text and it adds just fine with the 1 line of code I have for it.

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

@KB30  try with below script:

 

current.short_description = 'Outage reported at' + producer.at_what_location_is_this_outage_occurring.getDisplayValue() + producer.caller_id.getDisplayValue();

 

 

View solution in original post

1 REPLY 1

Harsh Vardhan
Giga Patron

@KB30  try with below script:

 

current.short_description = 'Outage reported at' + producer.at_what_location_is_this_outage_occurring.getDisplayValue() + producer.caller_id.getDisplayValue();