Reltio Connect

 View Only
  • 1.  Does profile cloning work with an autogenerated ID?

    Reltio Employee
    Posted 11-22-2022 12:25
      |   view attached
    Hi Team, I have an attribute in my sandbox tenant called, HCPID that’s autogenerated. How can I setup profile cloning so that when I clone a profile, it automatically generates a new HcpID?I have the UI config setup like this
    "cloneAction": [
                    {
                        "entityTypeUris": [
                            "configuration/entityTypes/
    HCP"
                        ],
                        "attributeReplacementMapping": {
                            "attributes/HCPID": null
                        },
                        "relationshipTypesToCopy": [
                            "*"
                        ]
    I have the L3 configuration setup like this for HCPID
    {
                        "label": "HCP ID",
                        "name": "HCPID",
                        "description": "An auto-generated unique id assigned to an HCP",
                        "type": "String",
                        "hidden": false,
                        "important": true,
                        "system": false,
                        "faceted": true,
                        "searchable": true,
                        "autoGenerated": true,
                        "generator": "Sam_Wilson_1",
                        "autoGenerationPattern": "{value}",
                        "generateIfEmpty": true,
                        "generateIfNotEmpty": false,
                        "
    generatedValueUniqueForCrosswa
    lk": true,
                        "attributeOrdering": {
                            "orderingStrategy": "LUD"
                        },
                        "uri": "configuration/entityTypes/
    HCP/attributes/HCPID",
                        "skipInDataAccess": false
                    },
    But for some reason when I clone a profile, it doesn’t automatically create a new HCPID. Attached below is a brief video that demonstrates this.


  • 2.  RE: Does profile cloning work with an autogenerated ID?

    Reltio Employee
    Posted 11-28-2022 12:32
    I may be wrong, but I believe the 'attributeReplacementMapping' to null is preventing the id from being generated.

    try removing it.


  • 3.  RE: Does profile cloning work with an autogenerated ID?

    Reltio Employee
    Posted 11-29-2022 11:55
    Thanks @Gino Fortunato when I remove the HCP ID from the attributeReplacementMapping, it copies over the existing autogenerated ID from the profile I'm cloning which is not the desired outcome.  ​​


  • 4.  RE: Does profile cloning work with an autogenerated ID?

    Reltio Employee
    Posted 12-07-2022 13:51
    Hi Samuel,
    Try this - 

    "attributes/CustomerId": "{value}"

    "cloneAction": [
    {
    "entityTypeUris": [
    "configuration/entityTypes/Contact"
    ],
    "attributeReplacementMapping": {
    "attributes/CustomerId": "{value}"
    },
    "relationshipTypesToCopy": []
    }
    ]


  • 5.  RE: Does profile cloning work with an autogenerated ID?

    Reltio Employee
    Posted 12-08-2022 10:14
    Thanks Ranadip,

    I've tried "attributes/CustomerId": "{value}" and it copies over the existing autogenerated id as well.  This has been identified as a bug and will be fixed in one of the upcoming weekly releases.

    Best,
    Sam


  • 6.  RE: Does profile cloning work with an autogenerated ID?

    Reltio Partner
    Posted 12-08-2022 12:20

    Hi,

    I have a nested attribute that I want to clone. I tried the below but it did not work. Can anyone help me how to clone a nested attribute? 
    Procurement_Details (Root) --> Packaging_Component (nested attribute)

               "cloneAction": [
                        {
                            "entityTypeUris": [
                                "configuration/entityTypes/Item"
                            ],
                            "attributeReplacementMapping": {
                              "attributes/Procurement_Details": "{value}",
                              "attributes/Procurement_Details/attributes/Packaging_Component": "{value}"
                            },
                            "relationshipTypesToCopy": []
                        }
                    ]​


  • 7.  RE: Does profile cloning work with an autogenerated ID?

    Reltio Employee
    Posted 12-08-2022 12:47
    Hi Eren,

    If you remove the nested attribute from the attribute replacement mapping it should work.

    "attributes/Procurement_Details/attributes/Packaging_Component": "{value}"​


    Best,

    Sam



  • 8.  RE: Does profile cloning work with an autogenerated ID?

    Reltio Partner
    Posted 12-08-2022 13:22
    Thank you @Samuel J. Wilson​​


  • 9.  RE: Does profile cloning work with an autogenerated ID?

    Reltio Partner
    Posted 12-16-2022 13:00
    @Samuel J. Wilson Is there a way (short cut) to include all attributes for cloning instead of typing them one by one in attributeReplacementMapping?​