dot-walking from task_sla to incident table custom field

Antonio24
Giga Contributor

Hi to everyone...just a little doubt about SLA, workflow and dot-walking: I have a SLA with his workflow with notification at 50% and 75%, for the notification at 100% I have a "If" condition which "yes" brings to a notification and "n"o brings to another one. My "If" condition is setted to the value in a custom field on incident table, so the dot-walking I used is like:

task.ref_incident.u_field (where u_field is my custom field)...

workflow seems work with this dot-walking but the question is: how I've reached my custom field in incident from task table (actually from task_sla)? is the dot-walking correct?

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Looks oke. You could add a .getValue(), though looks oke.

What is it you're after? Just confirmation 🙂 or is still something not working?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

10 REPLIES 10

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Looks oke. You could add a .getValue(), though looks oke.

What is it you're after? Just confirmation 🙂 or is still something not working?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Antonio24
Giga Contributor

Hi Mark, 

 

thanks for answering....yes, it was just a confirmation, bcs I've built the dot.walking using the "show related fields" and then searching in a way or another my custom field. We weren't sure about the dot.walking, but still seems to work great, so thanks a lot.

 

Is there another way to verify if my path with dot.walking is correct? like looking from the custom field to built the correct dot.walking, or whatever...?

 

thanks again,

Antonio

Hi there,

I have to look it up, I think during ServiceNow Scripting Fundamentals it's mentioned that dotwalking is supported up to 3 or 4 levels.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

From the docs:

Dot-walking references a field by building a chain of field names separated by dots (periods). For instance,incident.assigned_to.company references the company of the user assigned to an incident. The recommended limit for chain length is three levels.
https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/use/navigation/concept/c_DotWalki...

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn