- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2022 11:30 PM
Hi Team,
Below is the BR which I have written to create users in the "sys_user" table but am stuck in one place where I need to populate a reference field. ( Company Field )
What should be the exact line of code? ( The company name exists in the table but while I am trying to do a dot walk to get this value but it is note getting populated )
Thanks and Regards,
Saurabh Chatterjee
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2022 11:35 PM
Hi,
just update line as this
gr.u_callercompany = 'sysId'; // give sysId here directly
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2022 11:35 PM
Hi,
just update line as this
gr.u_callercompany = 'sysId'; // give sysId here directly
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2022 12:09 AM
Thank you Ankur!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2022 11:35 PM
Either use setValue("your_sys_id");
if you want to use setDisplayValue("your_company_name")
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2022 12:10 AM
Thank you Aman!