Hey!
I was wondering if I could create a reference entity inside an entity, when using the entity api.
[
{
"type": "configuration/entityTypes/Counterparty",
"attributes": {
"Name": [
{
"value": "TestCounter142"
}
],
"Address": [
{
"value": {
"Type": [
{
"value": "Type2"
}
],
"BusinessArea": [
{
"value": "GlobalAddressId2"
}
],
"AddressLine1": [
{
"value": "AddressLine122"
}
]
}
}
],
"Active": [
{
"value": "true"
}
],
"FromEquinor": [
{
"value": "true"
}
],
"FromDC": [
{
"value": "false"
}
]
},
"crosswalks": [
{
"type": "configuration/sources/EQ_SAP",
"sourceTable": "Counterparty",
"value": "7684"
}
]
}
]
If I send the json body above, the entity Counterparty is created with the reference entity Address. From the response, the crosswalk for Address has Reltio type and a generated value.
"refEntity": {
"type": "configuration/entityTypes/Address",
"crosswalks": [
{
"uri": "entities/1vdj81bD/crosswalks/1vdj85rT.2m0lGKtbb",
"type": "configuration/sources/Reltio",
"value": "1vdj85rT",
"attributeURIs": [
"entities/1vdj81bD/attributes/Address/jo1xSS7",
"entities/1vdj81bD/attributes/Address/jo1xSS7/GlobalAddressId/2m0lGKLVX",
"entities/1vdj81bD/attributes/Address/jo1xSS7/Type/2m0lGKPln",
"entities/1vdj81bD/attributes/Address/jo1xSS7/BusinessArea/2m0lGKU23",
"entities/1vdj81bD/attributes/Address/jo1xSS7/AddressLine1/2m0lGKYIJ"
]
}
],
"objectURI": "entities/1vdj85rT"
},
Is it possible to set our own crosswalk type and value for reference entity Address without using the relation api?