Refernce filed populating sys id on the record

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 09:49 PM
Hi All,
grIncident.setValue('u_actual_name', producer.manufacturer + producer.name);
on record producer script we are trying to set the value to the field value. but its populating the sys id.
we are combining two value manufacturer (reference) and name is string field.
need suggestions to achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 10:13 PM
Hello @Community Alums
use this :-
grIncident.setValue('u_actual_name', producer.manufacturer.name + " " + producer.name);
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 10:14 PM
Hi @Community Alums,
If you have the correct manufacturer records sys_id, then no need to combine with name.
Try this and let me know. It should display the manufacturer name in that field.
grIncident.setValue('u_actual_name', producer.manufacturer);
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2023 10:21 AM
Hi @Community Alums,
Have you look into it? Let me know if you stuck and need any help.
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 10:23 PM
hello I believe Entered Model Name field is a string field not reference type so you need to change the code below
grIncident.setValue('u_actual_name', producer.manufacturer + producer.name);
to
grIncident.setValue('u_actual_name', producer.manufacturer.name + producer.name); //use producer.manufacturer.name or producer.manufacturer.getDisplayValue()
Harish