- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2021 08:52 PM
I used gs.getUser.getCompanyID() to get the sys_id of a company.
For some reason, the same value is output even if I change the Company field in the user record.
Why is this? Please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2021 09:35 PM
If you have used the above in the default value then it would only work for 1 time when new form is opened
It would auto-populate the logged in user's company
Please try to logout and login again and test once
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
‎02-16-2021 09:27 PM
Hi,
Please find below thread for your reference:-
Thanks
Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2021 09:35 PM
If you have used the above in the default value then it would only work for 1 time when new form is opened
It would auto-populate the logged in user's company
Please try to logout and login again and test once
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
‎02-16-2021 11:26 PM
Hi Ankur
I was able to solve the problem, thank you.