What makes the information button appear when you add an Affected CI item on an incident?

aansell
Mega Expert

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?

find_real_file.png

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,

3 REPLIES 3

TrevorK
Kilo Sage

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!


Community Alums
Not applicable

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.

aansell
Mega Expert

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