- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018 08:33 AM
Hi,
according to the Service Now rules to interact with Service Now tables via REST API one has to use Import Sets which work fine as long as people need to insert data but how can I delete a record ? Table API supports DELETE verb but Import Set doesn't.
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018 09:24 AM
That is correct that if you're modifying data you must use import sets. We actually won't certify a solution that deletes data at all and we recommend that you set records as inactive rather than deleting. What is the use case that is requiring deletes?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018 09:10 AM
Which rules are you referring to? A general good practice is not to delete anything, but to mark records as inactive. Could you share more about your use case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018 09:17 AM
As far as I remember, to get an external integration certified by ServiceNow, any interaction that modifies a table should be done using an Import Set.
This is just fine but the ServiceNow REST API also list the possibility to delete records from a table, but how can one implement it using Import Sets ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018 09:24 AM
That is correct that if you're modifying data you must use import sets. We actually won't certify a solution that deletes data at all and we recommend that you set records as inactive rather than deleting. What is the use case that is requiring deletes?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2020 08:21 AM
Hi Brad,
For relationships modification, deletion can be neccessary.
For eg: I want to update Affected CI list associated with a Task.
I need to delete the relationship. There are no active flag in m2m tables.
How to update relationships using import set.