Question:
In a business requirement to update the address values it is not updating data at all. In the physical config of the said tenant the partial override for nested attribute is set true. But when we wanted to update particular addresses(using partial override and preserve URIs feature) they are not updating.
However the history show there has been an update occurred but no effect on data. Now if we send the data without partial override then by convention it should overwrite the entire existing address data in tenant with the new data, but it is also not happening. We want to update specific address data blocks with same address data so that they merge togather. But since the update itself is not happening, so the merge is also not happening. We are using Post entity API to update the record.
API used:
POST https://<envirnoment>/reltio/api/<tenantId>/entities?options=partialOverride,preserveURIs,updateAttributeUpdateDates&returnUriOnly=true
Payload Used
[
{
"type": "configuration/entityTypes/HCP",
"crosswalks": [
{
"type": "configuration/sources/OneKey",
"value": "HCP_WAUIND274940"
}
],
"attributes": {
"Addresses": [
{
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob",
"value": {
"AddressType": [
{
"value": "Visit",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/AddressType/2RR9CclvF"
}
],
"Status": [
{
"value": "Active",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/Status/1V4STHoL7"
}
],
"Primary": [
{
"value": "true",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/Primary/2RR9CcQbx"
}
],
"AddressLine1": [
{
"value": "Hubertusstr, 10 Mönchengladbach, 41239 Australia",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/AddressLine1/3kfQxyLkf"
}
],
"City": [
{
"value": "Wellington",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/City/1V4STIIAv"
}
],
"StateProvince": [
{
"value": "ACT",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/StateProvince/1V4STIMRB"
}
],
"PostalCode": [
{
"value": "6035",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/PostalCode/1V4STIQhR"
}
],
"Country": [
{
"value": "AU",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/Country/1V4STIUxh"
}
],
"Latitude": [
{
"value": "46.81936517357826",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/Latitude/2RR9CcdOj"
}
],
"Longitude": [
{
"value": "-71.29231229424477",
"uri": "entities/fpra0c2/attributes/Addresses/1V4STHfob/Longitude/2RR9CdFl3"
}
]
}
},
{
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE",
"value": {
"AddressType": [
{
"value": "Visit",
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE/AddressType/1rg34SvUU"
}
],
"Status": [
{
"value": "Active",
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE/Status/1rg34Szkk"
}
],
"Primary": [
{
"value": "true",
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE/Primary/1rg34T410"
}
],
"AddressLine1": [
{
"value": "Hubertusstr, 100 Mönchengladbach, 412395 Australia",
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE/AddressLine1/1rg34TL42"
}
],
"City": [
{
"value": "Wellington",
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE/City/1rg34TTaY"
}
],
"StateProvince": [
{
"value": "ACT",
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE/StateProvince/1rg34TXqo"
}
],
"PostalCode": [
{
"value": "6035",
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE/PostalCode/1rg34Tc74"
}
],
"Country": [
{
"value": "AU",
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE/Country/1rg34TgNK"
}
],
"Latitude": [
{
"value": "46.81936517357826"
}
],
"Longitude": [
{
"value": "-71.29231229424477"
}
]
}
},
{
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg",
"value": {
"AddressType": [
{
"value": "Visit",
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg/AddressType/HT0A4mBw"
}
],
"Status": [
{
"value": "Active",
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg/Status/HT0A4qSC"
}
],
"Primary": [
{
"value": "true",
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg/Primary/HT0A4uiS"
}
],
"AddressLine1": [
{
"value": "Hubertusstr, 100 Mönchengladbach, 412395 Australia",
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg/AddressLine1/HT0A5BlU"
}
],
"City": [
{
"value": "Wellington",
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg/City/HT0A5KI0"
}
],
"StateProvince": [
{
"value": "ACT",
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg/StateProvince/HT0A5OYG"
}
],
"PostalCode": [
{
"value": "6035",
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg/PostalCode/HT0A5SoW"
}
],
"Country": [
{
"value": "AU",
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg/Country/HT0A5X4m"
}
],
"Latitude": [
{
"value": "46.81936517357826"
}
],
"Longitude": [
{
"value": "-71.29231229424477"
}
]
}
}
]
Answer
Rather than using POST /entities, please consider using the following API (see https://docs.reltio.com/en/explore/get-going-with-apis-and-rocs-utilities/reltio-rest-apis/model-apis/entities-api/cumulative-entity-update)
POST https://mpe-01.reltio.com/reltio/api/OYTH05bdqu3XVdG/entities/fpra0c2/_update?options=sendHidden,updateAttributeUpdateDates,addRefAttrUriToCrosswalk
Payload
[
{
"type": "UPDATE_ATTRIBUTE",
"uri": "entities/fpra0c2/attributes/Addresses/xKW9Wtfp/AddressLine1/1ilGxQsRn",
"newValue": {
"value": "Hubertusstr, 10 Mönchengladbach, 41239 Australia"
},
"crosswalk": {
"type": "configuration/sources/OneKey",
"value": "HCP_WAUIND274940"
}
},
{
"type": "UPDATE_ATTRIBUTE",
"uri": "entities/fpra0c2/attributes/Addresses/1rg34SrEE/AddressLine1/1ilGxE9w3",
"newValue": {
"value": "Hubertusstr, 100 Mönchengladbach, 412394 Australia"
},
"crosswalk": {
"type": "configuration/sources/OneKey",
"value": "HCP_WAUIND274940"
}
},
{
"type": "UPDATE_ATTRIBUTE",
"uri": "entities/fpra0c2/attributes/Addresses/HT0A4hvg/AddressLine1/1ilGxE5fn",
"newValue": {
"value": "Hubertusstr, 10 Mönchengladbach, 4123 Australia"
},
"crosswalk": {
"type": "configuration/sources/OneKey",
"value": "HCP_WAUIND274940"
}
}
]
Comments
Please sign in to leave a comment.