How can I populate Configuration Item based on Caller

Sylvain L
Tera Contributor

Hello, how can I auto populate the Configuration Item field based on the Caller's configurations items?

Is there a simple way to achieve this?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

remember there can be more than 1 Ci assigned to Caller.

why not use advanced ref qualifier and filter the CIs

javascript:'assigned_to=' + current.caller_id;

If you still require then you can use onChange + GlideAjax on Caller field

GlideAjax Example Cheat Sheet

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Murthy Ch
Giga Sage

@Sylvain L 

Can you please explain more on your requirement?

How you want to auto populate with some screenshots?

 

Thanks,

Murthy

Thanks,
Murthy

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

remember there can be more than 1 Ci assigned to Caller.

why not use advanced ref qualifier and filter the CIs

javascript:'assigned_to=' + current.caller_id;

If you still require then you can use onChange + GlideAjax on Caller field

GlideAjax Example Cheat Sheet

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur, 

The javascript seems to work after a few modifications in the dictionary.

There was a value in dependent field which I deleted. I also set the dictionary overrides for incident and incident_task to false.

I don't know if you have to do this for the script to work oob, but I'm taking over the work of someone else.

Thanks for your answer!