Can Reltio set a Timestamp attribute to the current time when another attribute changes?

Question

A nested attribute, for example Phone, has two sub-attributes: <StatusAttribute> and a Timestamp attribute, <UpdateTimestamp>. Whenever <StatusAttribute> changes, <UpdateTimestamp> should be set to the current system time. Is there a built-in feature or configuration that does this?

Answer

No. Reltio's documented configuration options can't fill an attribute with the current time when another attribute changes:

  • Auto-generated values: the generators produce only UUID or sequential values. A constant value for a Timestamp attribute is a fixed date and time, not the current time, and it doesn't depend on changes to another attribute.
  • Cleanse functions: the out-of-the-box cleansers, including the Date Value Standardizer, build or transform values from the attributes you map as inputs. None of them generates the current time on its own.

What Reltio records on its own

Reltio already records when values change, as system metadata rather than in your attribute:

  • Each crosswalk (the link to a source record) has a createDate and an updateDate.
  • A crosswalk's singleAttributeUpdateDates holds the time a specific value was last updated on its own, for example through a partial override, a cumulative update, or an edit in the UI. Values written together with the rest of the crosswalk aren't listed there; their time is the crosswalk's updateDate.

You can read both with GET https://<environment>.reltio.com/reltio/api/<tenantId>/entities/<entityId>, under crosswalks. Reltio sets singleAttributeUpdateDates automatically, and you can't overwrite it.

How to fill the attribute itself

This needs logic that you build and maintain:

  • A Life Cycle Action (LCA): custom code that runs on an entity hook, for example beforeUpdate, whose documented uses include deriving or auto-populating attributes. The LCA can set <UpdateTimestamp> to the current UTC time when an update changes <StatusAttribute>.
  • The source system or integration: the system that changes <StatusAttribute> sends the current time in <UpdateTimestamp> in the same request.

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.