Customise ID Format
Overview
IdFormat
defines how auto-generated IDs (like complaint numbers) look. This is used by the IDGen service in DIGIT CCRS modules.
ID Format – Config vs Customisation
Config: Change prefix, date format, or sequence key in MDMS (no code change, just update and restart IDGen).
Customisation: Needed only if ID rules depend on complex logic, external systems, or new ID types not supported by IDGen.
When to change: New tenant, unique business prefix, regulatory format needs, or separate sequences for multiple workflows.
Steps
Check existing format
Use the MDMS Search API Send the below JSON request:
{
"MdmsCriteria": {
"tenantId": "pg",
"moduleDetails": [
{
"moduleName": "common-masters",
"masterDetails": [
{
"name": "IdFormat"
}
]
}
]
}
}
Expected Output – You’ll get the current format:
{
"format": "PG-PGR-[cy:yyyy-MM-dd]-[SEQ_EG_PGR_ID]",
"idname": "pgr.servicerequestid"
}
Summary
1️⃣
Search IdFormat
Use MDMS Search API to check current format
2️⃣
Modify Format
Change only the format
value as needed
3️⃣
Update Format
Use MDMS Update API to save the change
4️⃣
Restart IDGen
Restart service to load the new format
Last updated
Was this helpful?