Can I add record in Incident table using GlideRecordSecure from Scripted REST API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2025 09:36 AM
Is it possible to add incident record directly into the incident table using GlideRecordSecure from Scripted REST API? Is this approach serviceNow certification friendly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2025 09:41 AM
Hi @bachhav ,
Yes, that's very much possible GlideRecordSecure = (GlideRecord + ACLs)
it just check whether the user has access to or not by evaluating ACLs
https://developer.servicenow.com/blog.do?p=/post/gliderecord-vs-gliderecordsecure/
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2025 09:44 AM - edited ‎07-01-2025 09:45 AM
Thanks @Chaitanya ILCR for the response.
But will this approach be accepted during the ServiceNow certification phase, as Incident is an OOB table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2025 09:54 AM
Hi @bachhav ,
sorry, could you please explain what do you mean by ServiceNow certification phase?
technically it's possible to insert records using GlideRecordSecure. and in the context of Scripted rest apis we can even say it's a best practice
Is there a specific reason why you are trying to insert records with scripted rest api as you can use the table api?
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2025 09:59 AM
@Chaitanya ILCR - I mean, if I insert records directly into the Incident table using GlideRecordSecure via Scripted REST API in the scoped app. Will whether ServiceNow certification approve the scoped app?
ServiceNow certification team doesn't recommend using table API in the scoped app.