How to set value to reference field using sys_id
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2016 02:37 AM
Hi all,
I am having sys_id of company name and i want to set that company name to reference field using sys_id.So how to do it?Please anyone can tell?
25 REPLIES 25
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2020 12:16 PM
Hello Peshwen,
If I understand correctly you want to set a reference field using a sys_id.
You should do it like below:
current.yourfieldname = sys_id of the record that you want to set.
Hope that helps.
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks and Regards,
Tejas