Question
The last Update is not getting updated for the Source and Reltio Cleanser on the Crosswalk page after the Name is updated for the source through API.
Answer
Perform the following API
POST ({{api_uri}}/{{tenant}}/entities?options=partialOverride
[{
"type": "configuration/entityTypes/HCO",
"attributes": {
"Name": [
{
"value": "SOUTHSIDE MEDICAL CENTER"
}
],
"Identifiers": [
{
"value": {
"Type": [
{
"value": "HINl"
}
],
"ID": [
{
"value": "4DDF2"
}
],
"Order": [
{
"value": "1"
}
]
}
}
],
"Status": [
{
"value": "Active"
}
],
"Country": [
{
"value": "US"
}
]
},
"crosswalks": [
{
"type": "configuration/sources/HINl",
"value": "4DGH1YDF2",
"updateDate": "2021-06-08"
}
]
}]
Here is a series of good rules for updating UpdateDate in the crosswalk (where the update date is present in the request body)
API call | updateDate in request | attributes in request | Result: updateDate changed | |
POST ({{api_uri}}/{{tenant}}/entities?options=partialOverride) | present | all | changed | |
POST ({{api_uri}}/{{tenant}}/entities?options=partialOverride) |
present | some not all | not changed | |
POST ({{api_uri}}/{{tenant}}/entities?options=partialOverride) | present | some with changes and other attributes without change (all present) | changed | |
POST ({{api_uri}}/{{tenant}}/entities?options=partialOverride) | present | all with changes | changed | |
POST ({{api_uri}}/{{tenant}}/entities?options=partialOverride,updateAttributeUpdateDates) | present | all | changed | |
POST ({{api_uri}}/{{tenant}}/entities?options=partialOverride,updateAttributeUpdateDates) | present | some not all | not changed | |
POST ({{api_uri}}/{{tenant}}/entities?options=partialOverride,updateAttributeUpdateDates) | present | some with changes and other attributes without change (all present) | changed | |
POST ({{api_uri}}/{{tenant}}/entities?options=partialOverride,updateAttributeUpdateDates) | present | all with changes | changed | |
Alternative solution
Perform the following API for the desired result that you are expecting.
POST https://<environment>.reltio.com/reltio/api/<tenantId>/entities?options=updateAttributeUpdateDates
Request Body:
[
{
"type": "configuration/entityTypes/Organization",
"attributes": {
"LastUpdatedByUser": [
{
"type": "configuration/entityTypes/Organization/attributes/LastUpdatedByUser",
"value": "Harsha"
}
]
},
"crosswalks": [
{
"type": "configuration/sources/IRIS",
"value": "FABWA8718",
"updateDate": "2021-09-30T12:38:50.769Z"
}
]
}
]
Reference
- Why is the single attribute data not being changed?
- https://docs.reltio.com/entitiesapi/extendpartialoverriderefattr.html
- https://docs.reltio.com/mergeapis/dataapicrosswalks.html
- https://docs.reltio.com/infoandconfig/managingcrosswalkdates.html
Comments
Please sign in to leave a comment.