- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 01:28 PM
How do It covert
contact_person (Reference using sys_user)
after selecting the user, the contact_person variable has the sys_id
How do I load the name of the user and not the sys_id into the description field of the record I am trying to create
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 01:49 PM - edited 05-08-2024 01:52 PM
Hi @Bret Smith ,
You can just dot walk like producer.contact_person.name;
if (producer.request_reason == 'Update existing'){
current.short_description = producer.request_reason+' Dashboard/Report';
current.description = 'Title of existing dashboard/report: '+producer.update_title_of_dashboard+
'; Subject Matter Expert Name: '+producer.contact_person.name;
}
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 01:34 PM - edited 05-08-2024 01:35 PM
Hi @Bret Smith
You can write before insert or update business rule and Tried in my pdi and it is working FIne and change the values based upon your requirement
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var caller_id=current.caller_id.getDisplayValue();
gs.addInfoMessage("caller_id");
current.setValue('short_description',caller_id);
})(current, previous);
Thanks and Regards
Sai Venkatesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 01:49 PM - edited 05-08-2024 01:52 PM
Hi @Bret Smith ,
You can just dot walk like producer.contact_person.name;
if (producer.request_reason == 'Update existing'){
current.short_description = producer.request_reason+' Dashboard/Report';
current.description = 'Title of existing dashboard/report: '+producer.update_title_of_dashboard+
'; Subject Matter Expert Name: '+producer.contact_person.name;
}
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang