How to remove records which arent coming in payload? what approach to take?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 12:30 AM - edited 12-18-2024 12:35 AM
Hi All,
I am working on an integration with 3rd party system with servicenow which brings in data and we store it in a custom table in ServiceNow. Its a full payload that we will receive. So, based on that we insert into custom table. IN future, some records in 3rd party system will be deleted or removed, we need to remove it in SN aswell. Whats the best way to do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 02:47 AM
Yes this is even possible which will required validation on the staging table.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 12:54 AM
you will have to expose an API to 3rd party which they can consume and they can send details of which records are deleted in their system
Based on that the API will delete the data in ServiceNow
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
12-18-2024 01:00 AM
Hi Ankur,
Thanks for your response. The payload is a full payload always. Isnt there a way to identify the deleted records i.e the missings one in payload we receive