Reference Qualifier- Current object
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 02:55 PM
Hi Experts,
I have a simple 'client callable' script include which i use to retrun active tickets for the user/caller selected on our 'new call' form. So we have Caller reference field to select a user, and a Ticket number reference field to list his/her active tickets.
I am trying to pass the caller identity i.e. sys_id using the current object, but looks like to the current object is not being passed.
javascript:new myTickets().getTickets(current.caller);
Current is not being considered for some reason, however for testing if i give any hardcoded user sys_id, it does work.
Any help will be appreciated!
Thanks,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 04:24 PM
nope.. strangely enough, ServiceNow has decided that on call table(new_call) the caller field is named just caller.... and not caller_id as in incident and so on... Why stick to the same name
//Göran

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 05:10 PM
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 05:43 PM
Because they were created at different times and by different people?! ... on which the last one thought his approach was better
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 03:24 AM
yea, sadly.. In my mind thou, there should be a framework to go after so a big system like this isn't played around with what people think themself and not the bigger picture.
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 10:23 PM