incident auto populate service offering and business service fields depend configuration item choice

Tal5
Giga Guru

Hi experts
I would love to get help
What is the best practice to display business service and service offering data according to my choice in the configuration item field

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Tal5 

you can use onChange client script if you wish to auto-populate but it makes sense only when you have 1 to 1 mapping.

if not then please use reference qualifier and restrict the records

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

View solution in original post

3 REPLIES 3

Anil Lande
Kilo Patron

Hi,

You can use onChange client script and auto populate fields based on CI.

https://www.servicenow.com/community/developer-articles/glideajax-example-cheat-sheet-updated/ta-p/2...

https://servicenowmypath.blogspot.com/2017/10/glideajax-example-servicenow.html

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Ankur Bawiskar
Tera Patron
Tera Patron

@Tal5 

you can use onChange client script if you wish to auto-populate but it makes sense only when you have 1 to 1 mapping.

if not then please use reference qualifier and restrict the records

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

Craig Tinsley
Tera Contributor

Good question / good answers, Team!

I have a similar need, BUT the other way around... Today, we use Service to drive available Service Offerings (along with a reference qualifier that makes sure that there's a relationship between the two). To save keystrokes, our Service Desk would like to SKIP typing in the Service and go right to Service Offerings.

Services/Service Offerings have a 1-to-many relationship. Example:

Service: Application Support

Service Offerings: Application1, Application2, Application3, etc.

 

I want to be able to allow them to type the Service Offering (eg. "Application1") and have Service (eg. "Application Support") automagically filled in. Feels like a client script would work (as long as there are no duplicate offerings), but the scripting might be a bit complex. Am I on the right track using a Client Script?

TY in advance!