Record Producer - Auto populating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-18-2022 12:13 AM
Hi all
Greetings!
I have a requirement that need to create an incident record from record producer. In incident form I need populate location field of the caller ,but I didn't have any column in the record producer for location. Location field of an user is stored in different table.I'm writing script, but it's not working.
current.location = producer.caller_id.location.name;
Appreciate your help!
Thanks,
Abirami
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-18-2022 12:24 AM
Hi
You need to change reference of the field to location table and then set default value to javascript:gs.getUser().getLocation().
Refer this.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-18-2022 12:58 AM
I don't have location field in record producer..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-18-2022 02:10 AM
Hi Abhi,
you can use below code in the record producer
current.location = gs.getUser().getLocation();
Please mark it helpful if it answers your question
Thanks,
Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-18-2022 03:54 AM
Use something like below in the script
current.location= producer.caller_id.location.getDisplayValue();