Reltio Connect

 View Only
Expand all | Collapse all

How to Create an Auto Generated ID with Prefix

  • 1.  How to Create an Auto Generated ID with Prefix

    Reltio Partner
    Posted 12-23-2022 13:24
    Hi all,

    Is there a way to add a prefix to an auto-generated ID? For example,  <KRM> +6 digit auto-generated ID.

    Thanks,
    Eren


  • 2.  RE: How to Create an Auto Generated ID with Prefix

    Founding Member
    Posted 12-25-2022 08:15
    Hi Eren,
    You can add AutoGenaration pattern like this,
    "autoGenerationPattern": "KRM{value}",

    So it would be something similar to this,

    {
    "label": "ID",
    "name": "ID",
    "description": "Auto generated KRM ID",
    "type": "String",
    "hidden": false,
    "important": false,
    "system": false,
    "searchable": true,
    "autoGenerated": true,
    "generator": "SEQ_GEN_ABCDEDFG_ID",
    "autoGenerationPattern": "KRM{value}",
    "generateIfEmpty": true,
    "generateIfNotEmpty": false,
    "generatedValueUniqueForCrosswalk": true,
    "attributeOrdering": {
    "orderType": "ASC",
    "orderingStrategy": "LUD"
    },
    "uri": "configuration/entityTypes/HCP/attributes/ID",
    "skipInDataAccess": false
    },


  • 3.  RE: How to Create an Auto Generated ID with Prefix

    Reltio Partner
    Posted 12-25-2022 15:18
    Perfect! Thank you!