Can we get the data of activity using rest APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2025 02:18 AM
can we get activity data using rest APIs ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2025 02:31 AM
activity tracks what is happening on each of the table's field, when it was changed and what was the previous and current value
It's store in sys_audit table and it's a system table
You should not allow direct access to that table via API
what's your business requirement for this? what the 3rd party wants?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2025 02:41 AM
Hi @Ankur Bawiskar , I want the fetch the activity details and put that details in a field in a different instance using rest APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2025 02:45 AM
You can send details from 1 instance to another whenever a field changes, why to send complete activity details?
For your question then have a scripted REST API developed in instance A and consume that from instance B
Instance A's scripted REST API will send what you want in API response and then in instance B add those details in whichever field you want.
But remember the scripted REST API in instance A will query Audit table and will have performance impact.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2025 11:38 PM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader