What is wrong with my client callable script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2024 09:41 AM
I have created this script include to push the values of a field into a record producer field when the criteria matches. The debug logs suggest that the query is passing the values. However, I keep getting no values returned and I dont know what is wrong.
This is the script:
The logs are returning the correct values but i am also getting no records found
The table has the records that match the parameters so I should get two results
What am i doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2024 10:31 AM
It looks like there is some extra space between Commuter Zones / Boat (value stored in table) and the same space is absent in your query parameter Commuter Zones/Boat could you please verify this? As if this difference exist then the query would fail and will not return any records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2024 10:36 AM
Do verify what I already mentioned.
Reading ServiceNow Support regarding choice values:
"Using special characters in the name, can generate other characters, in the Value field. These characters can cause filtering issues"
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field