Delete items via Import Set

lucaburgazzoli
Mega Contributor

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.

 

 

1 ACCEPTED SOLUTION

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?

View solution in original post

8 REPLIES 8

Brad Tilton
ServiceNow Employee
ServiceNow Employee

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?

lucaburgazzoli
Mega Contributor

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 ?

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?

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.