Get the Application Service of a CI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 12:59 AM
I am trying to auto populate the Application Service field when a Configuration item is selected, Im not seeing how to use that relationship, is there a way to query the cmdb_ci_service field and get the service of a given CIs Sys id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 01:13 AM
Hi @ServNowDev
OOTB there is not dependency between CI and Service field , so you need to build the logic, and it is you need to get from cmdb Rel table and also, in this case, if a CI related with more than 1 A S, then you need to bring that in field and user need to select the required one.
Looks easy but actually not 🙂 . we did this for our customer.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 01:32 AM
Any insight on how you built this logic like using database view or specific queries in really banging my head on this one
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 01:37 AM
Sorry mate, I am not developer so dont have much insights but for this
Query on cmdb rel table
if if the CI has more than 1 parent and then filter with AS as parent
and if more than 1 AS then put in array
This is what I know..
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************