Default value for a variable in Service Catalog variable set from User table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2018 11:31 PM
Hi,
I have two variable in a service catalog variable set which has to display user's phone number and department on loading catalog item. I need to set the default value. How do I do it?
Thanks,
G Balaji
- Labels:
-
Cost Management
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2019 10:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2018 02:19 AM
Hi Balaji,
If you found the solution, please mark the answer as correct and close the thread.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 11:20 PM
Hi All,
You can find some useful codes to set the 'default value' for variables in the Catalogue Variable Set from the User table.
1. javascript:gs.getUserID(); //will set logged-in user or requester #Type: Reference
2. javascript:gs.getUser().getEmail(); //Logged-in User's email id #Type: single line tex
3. javascript:gs.getUser().getFirstName(); //logged in user' first name #Type : single line text
4. javascript:gs.getUser().getLastName(); // logged in user' last name #Type: single line tex
5. javascript:gs.getUser().getRecord().getValue('manager'); //Logged in user's manager #type: Ref
6. javascript:gs.getUser().getRecord().getValue('department'); //logged in user's department #type: Ref
7. javascript:gs.getUser().getLocation(); //logge in user's location #type: Ref
8. javascript:gs.getUser().getRecord().getValue("mobile_phone"); //logged in user mobile num #type: single line text
9. javascript:gs.getUser().getRecord().getValue("phone"); //logged in user business phone #type: single line text.
10. javascript:gs.getUser().getCompanyID(); //logged in user's company #type: Ref
Please mark it helpful.
Thanks,
PTR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 07:22 AM
Tem como fazer um com um service_offering?