- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 12:42 AM
Hi All,
I have a service catalog. now in a reference field pointing to core_company table. I want to populate current user's company name ...
I need a suggestion on this
Regards
Abhinab
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 12:48 AM
Hi Abhinab,
Put this "javascript:gs.getUser().getCompanyID()" in the default value of your field where you want to populate current users company name.
Hope it will help you.
Regards,
Swapnil
PS: Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2019 09:32 PM
Hi, this didn't work on my case.
I have tried below on the field of variable field on the service catalog.
Could you kindly tell me how it worked?
1.Type Specifications
Reference:core_company
2.Default value
Neither of the codes worked.
javascript:gs.getUser().getCompanyID();
javascript:var com = gs.getUser().getCompanyID(); if (com) com;