What makes the information button appear when you add an Affected CI item on an incident?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2016 09:23 AM
Hi,
As a newbie system admin I am looking to understand what causes the information button (the circle with the 'i' in it) to be added on the end of the field when you add an Affected CI?
What I am looking for is the code that sits behind this button as I want to access one of the fields in a UI Action.
Can anyone help?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2016 09:27 AM
I believe what you are looking to do is just dot walking, here is an article from the Wiki: Dot-Walking - ServiceNow Wiki
This will demonstrate how you can access fields from the "Affected CI" in your code - which is what I believe you are looking to do. Section 7 on that page is accessing from a script. If you need help with a sample just let me know.
If I completely misunderstood what you are looking for my apologies!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2016 09:29 AM
That displays when you have a valid CI listed in the field. It allows you to access the CI record quickly.
If you want to access fields on the UI, you can do something called dot walking to access fields from a referenced item. If you wanted to access the version in this case, in a script you would reference current.affected_ci.version (assuming I have all the field names right).
- current is the incident record you are currently accessing.
- affected_ci is the field name for the reference field. If you are not sure what value this should be, right-click the label and you can see the value in the context menu
- version here is the name of the field on the CI record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2016 09:45 AM
Trevor & Ben,
Thanks for the guidance on dot walking and explanation of the info button. It's much appreciated as I have only been using the product for a few weeks and am getting to grips with the environment - just needed pointing in the right direction.
Cheers