Hi All,
There has been a requirement from client that we need to create auto-generated ID attributes so that the IDs get generated automatically for all existing entities. To perform this task, I have taken the following steps:
1. Create Generator using API
POST {{serverURL}}/generators
Body:
[
{
"name": "ID_Generator",
"type": "SEQUENTIAL",
"valueType": "DECIMAL",
"rangeStart": "1",
"rangeEnd": "99999",
"step": "1",
"fixedLength":5
}
]
2. Create an attribute in L3 config
{
"label": "Auto ID",
"name": "Auto_ID",
"type": "String",
"hidden": false,
"important": false,
"system": false,
"required": false,
"faceted": false,
"searchable": true,
"autoGenerated": true,
"generator": "ID_Generator",
"autoGenerationPattern": "ID{value}",
"generateIfEmpty": true,
"generateIfNotEmpty": false,
"uri": "configuration/entityTypes/Test/attributes/Auto_ID",
"skipInDataAccess": false
}
3. Ran a re-indexing task for the existing entities, but it isn't generating.
Can someone suggest on how to generate Auto IDs for existing entities as well?
------------------------------
Supratim Nag
Imidia
------------------------------