Reltio Connect

 View Only
  • 1.  Establishing Relationships between Single Records in Entities A and B.

    Posted 12-06-2023 09:18

    Hi everyone, I know how to establish a relationship between two entities, but I'm unsure about creating a relationship between a single record in each entity. To elaborate, let's consider two entities, A and B. Currently, I am in the process of adding a new profile to entity B. However, I am uncertain about how to establish a relationship between this new profile in entity B and the corresponding record in entity A. Any guidance on this matter would be greatly appreciated!



    ------------------------------
    Rajanithi J
    Data Aces
    ------------------------------


  • 2.  RE: Establishing Relationships between Single Records in Entities A and B.

    Reltio Employee
    Posted 12-06-2023 14:46

    Hi Rajanithi,

    Creating a relation within an entity profile requires setting up a reference attribute for that relation type and creating refEntity and refRelation objects within the entity payload for that reference attribute.  An example of this is individual to location relation type, and the corresponding address reference attribute within individual.

    This is what the payload would look like if you were posting an individual with a location.  Note the refEntity object, which represents the location's crosswalk, and refRelation, which represents the relation crosswalk.  The outcome of this post is the creation of the individual, creation of the location, as well as creation of a relation between the individual and location.

    [
        {
            "type": "configuration/entityTypes/Individual",
            "attributes": {
                "FirstName": [
                    {
                        "value": "Christestfirstname"
                    }
                ],
                "LastName": [
                    {
                        "value": "Christestlastname"
                    }
                ],
                "Phone": [
                    {
                        "value": {
                            "Status": [
                                {
                                    "value": "A"
                                }
                            ],
                            "Type": [
                                {
                                    "value": "Business"
                                }
                            ],
                            "Number": [
                                {
                                    "value": "18449122100"
                                }
                            ]
                        }
                    }
                ],
                "Email": [
                    {
                        "value": {
                            "Status": [
                                {
                                    "value": "A"
                                }
                            ],
                            "Type": [
                                {
                                    "value": "Primary"
                                }
                            ],
                            "Email": [
                                {
                                    "value": "christest@gmail.com"
                                }
                            ]
                        }
                    }
                ],
                "EnterpriseId": [
                    {
                        "value": "45454549889888777"
                    }
                ],
                "Address": [
                    {
                        "value": {
                            "AddressType": [
                                {
                                    "value": "H"
                                }
                            ],
                            "AddressLine1": [
                                {
                                    "value": "612 E Park St"
                                }
                            ],
                            "City": [
                                {
                                    "value": "Cary"
                                }
                            ],
                            "StateProvince": [
                                {
                                    "value": "NC"
                                }
                            ],
                            "Zip": [
                                {
                                    "value": {
                                        "PostalCode": [
                                            {
                                                "value": "27511"
                                            }
                                        ]
                                    }
                                }
                            ],
                            "Country": [
                                {
                                    "value": "US"
                                }
                            ],
                            "Status": [
                                {
                                    "value": "A"
                                }
                            ]
                        },
                        "refEntity": {
                            "type": "configuration/entityTypes/Location",
                            "crosswalks": [
                                {
                                    "type": "configuration/sources/ABCSource",
                                    "value": "3832834832_location"
                                }
                            ]
                        },
                        "refRelation": {
                            "type": "configuration/relationTypes/IndividualHasAddress",
                            "crosswalks": [
                                {
                                    "type": "configuration/sources/ABCSource",
                                    "value": "3832834832_hasAddress_A_H"
                                }
                            ]
                        }
                    }
                ]
            },
            "crosswalks": [
                {
                    "type": "configuration/sources/ABCSource",
                    "value": "3832834832"
                }
            ]
        }
    ]



    ------------------------------
    Christopher Jezorek
    ------------------------------



  • 3.  RE: Establishing Relationships between Single Records in Entities A and B.

    Reltio Employee
    Posted 12-07-2023 00:10

    Hi Rajanithi,

    Is my understanding of your question correct? 

    entity 1 and 2 merge to create entity A ; entity 3 and 4 merge to create entity B; is it possible to have a relationship between only entity 1 and 3?

    If this is the scenario, then it is not possible. The relationship is between entity A and B

    Please clarify if my understanding is not correct

    Thanks, 



    ------------------------------
    Saurabh Agarwal
    ------------------------------