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 09:46 AM
Hi there,
So basically this part returns nothing? Correct?
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
‎08-27-2024 09:51 AM
@rocio2 Since this table (sn_hr_core_mgb_mbta_rates) belongs in HR Core scope. Could you confirm the following.
1. In which scope your script include exist? Same as the scope of sn_hr_core_mgb_mbta_rates?
2. If they exist in different scope, do your table and script include have set to All Application scopes?
3. Do you have Caller Access set to Caller Restriction on your sn_hr_core_mgb_mbta_rates
4. Do you have any invalidate Restricted Caller Access records for HR Core scope and your table?
Solution to your issue lies in these questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2024 10:12 AM
@Sandeep Rajput both table and script include were created in the same scope.
Caller access is not set to caller restriction on the sn_hr_core_mgb_mbta_rates
I do not have any invalidated restricted caller access record for my table/scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2024 10:20 AM
See my comment.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field