官术网_书友最值得收藏!

  • Learning ServiceNow
  • Tim Woodruff
  • 308字
  • 2021-07-09 18:48:14

Dot-walking

The earlier lab walked you through creating a query in the condition builder using values stored on the records within the table you're viewing. This is extremely useful functionality, but what if we wanted to filter the list using a data point that is not on the incident itself, but is on one of the related records in a Reference field? For example, what if we wanted to show only incidents where the user in the Caller field is a currently active (meaning that they haven't left the company and had their user account disabled).

In order to accomplish this, we'll need to make use of dot-walking. We'll explore more about dot-walking and how to do it via JavaScript later in this book, but let's have a look at how to do this in the condition builder.

In your existing My Incidents filter, click AND to add another condition. In the list of fields below, you'll see some fields with a little arrow inside a circle on the right:

In List v2, in order to dot-walk, you need to first scroll to the bottom of the list of fields, and click Show Related Fields, then re-open the field drop-down, and select a Reference field from the list, that's followed by an arrow => and then a table name. When you re-open the drop-down list again, you'll see the fields from that table.

This arrow indicates a Reference field that can be dot-walked through. Find the Caller field in that list, and click the arrow to the right of it, and you'll see another list show up to the right. If this list also contains reference fields, you can continue dot-walking through them as well, up to several layers. If possible, it's recommended not to go beyond 3 or 4 layers of dot-walking, for performance reasons.

主站蜘蛛池模板: 清涧县| 泰顺县| 宁强县| 千阳县| 瓮安县| 兰溪市| 化隆| 平舆县| 石嘴山市| 博罗县| 舒兰市| 红河县| 枞阳县| 陵川县| 旌德县| 三门峡市| 玛多县| 朝阳区| 壶关县| 德惠市| 长兴县| 甘南县| 漳平市| 利辛县| 濉溪县| 汉寿县| 渑池县| 建始县| 丰顺县| 巩留县| 翁牛特旗| 齐齐哈尔市| 阳东县| 天台县| 武义县| 建阳市| 垣曲县| 思茅市| 凤庆县| 安吉县| 靖边县|