/
Keeping track of the deleted records

Keeping track of the deleted records

Our applications replicate the full data from the source. Some source systems have a State attribute to keep track of the health or lifecycle of the asset. In example:

 

Source

Object Type

Attribute

Possible Values

Source

Object Type

Attribute

Possible Values

Azure AD

Users

Account Enabled

True / False

Intune

Managed Devices

Device Registration State

notRegistered, registered, revoked, keyConflict, approvalPending, certificateReset, notRegisteredPendingEnrollment, unknown

Datadog

Hosts

Is muted

True / False

 

On the other hand, if a resource is deleted from the source, then there is no information coming from the source for that record. We recommend using the features of Assets for this purpose.

 

 Instructions

 

  1. Go to Object Schema Configuration.

  2. Select the “Statuses” tab.

  3. Click “Create a status”

  4. Call it “Deleted” and select the red category (inactive).

 

 

  1. Go back to Object Schema.

  2. Select the object type you would like to modify.

  3. Select the Attributes tab.

  4. Add a new attribute for “Source State” with a type of Status.

 

 

 

  1. Go to Object Schema Configuration again.

  2. Select the import tab.

  3. Select “Edit Mapping” for the import configuration.

  4. Select edit object type mapping for the Object Type that you would like to update.

 

 

  1. Change the setting for “Missing objects” to “Update”. Select the “Source State” attribute. And write “Deleted” for the new value. Set the Threshold Number to 3. This means, in case a record is not found 3 times, then during the 4th import it will be marked as “Deleted”.

 

 

  1. From now on you can follow the imports and check if the records are being marked as Deleted.

    Example AQL:

"Source State" = "Deleted"

 

 

 

 Related articles

Related content

Use Case Examples
Use Case Examples
Read with this
Allowing JSM customers to select their devices while they are requesting help
Allowing JSM customers to select their devices while they are requesting help
Read with this
Connecting Multiple Object Schemas
Connecting Multiple Object Schemas
Read with this
Keeping track of the empty values
Keeping track of the empty values
Read with this
Import configuration for Microsoft Intune Importer
Import configuration for Microsoft Intune Importer
Read with this
Managing Multiple Object Schemas in JSM Assets
Managing Multiple Object Schemas in JSM Assets
Read with this