Reference Qualifier- Current object

niitnishant
Tera Contributor

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

10 REPLIES 10

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


Thank you.


Because they were created at different times and by different people?! ... on which the last one thought his approach was better


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


Hi Goran,



If i uncheck 'Client Callable' it doesn't work at all, meaning script include doesn't return anything.


I am adding herewith the screenshots



Script Include-



script include.PNG



Call Form-


Form.PNG




Reference Qualifier-


Reference qual.PNG