Linter Check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2024 10:10 AM
I have a requirement to scan for date format anywhere in the scripting which is used in "yyyy-MM-dd" this format using Linter Check.
I tried to this with node.getNameIdentifier() but it is not working for me. Its possible that I am using it in wrong way.
Can anyone help me to achieve this requirement please. I am new in Servicenow.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2024 10:16 AM
Hi there,
Can you share what you tried and is not working?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2024 10:27 AM
I tried these line of codes. I am new so I don't know much about the APIs used in Linter check. I was trying to achieve the requirement as per my understanding.
(function (engine) {

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2024 09:15 PM
Oke and how did you come up with this? Did you see this somewhere? Or just made it up? For me looking at it, it will never work, though more interesting is your journey behind this. I can just copy/paste working code, though that will learn you nothing at all.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2024 09:22 PM
You are right Mark,
As I said I am learning and started reading about Linter Checks from yesterday only. May be after exploring more, I get to know more about these things.
please suggest me how can Improve my theoretical learning along with use cases so that it will help code correctly.
Thanks and Regards.