Advanced Data Module (ADM)
An ADM houses a single type of data which is homogenous.
Basic Information
{
"display_name": "Invoice",
"adm_id": "0a90b797-e68f-4628-867a-3c318e8a9d94",
"type": "built-in"
}
Meta
ADM meta contains the information on rendering the module records.
{
"display_name":"Prescriptions",
"adm_id":"4a93bb55-621e-4046-80fb-c511ed157089",
"type":"custom",
"unique_condition": ["external_id"] + [["manufacturer", "transaction_id"], "city"],
"states": ["new", "visited"],
"custom_fields":[
{
"name":"manufacturer",
"choices":[
"Cipla",
"Ranbaxy",
"Lupin"
],
"label":"Manufacturer",
"type":"dropdown",
"read_only": true,
"display_order": 1,
"cardinality": 1,
"default_value": "Ranbaxy"
},
{
"name":"transaction_id",
"label":"Transaction Id",
"type":"number",
"disable_delete": true,
"display_order": 2,
"cardinality": 1,
"default_value": 123
},
{
"name":"city",
"label":"Transaction Id",
"type":"number",
"disable_delete": true,
"display_order": 3,
"cardinality": 1
}
],
"state": false,
"read_only": true,
"i18n":{
"lead_title_singular":"Lead",
"lead_sentence_singular":"lead",
"lead_sentence_plural":"leads",
"lead_title_plural":"Leads"
}
}
Record
{
"record_id": "fff42fa9-3b6c-4c45-afd1-4518a643adfe",
"adm_id": "9882e1cf-623b-4079-9d72-34c93ddba6ad",
"associated_lead_ids": ["ea17d560-250a-4257-89e2-f7eed6039c60", "0f139d75-b64d-4582-9dab-7561916957c9"],
"company_id": "5969ba0b-2aa4-48c9-9778-6d61d3baf9bd",
"assigned_to": "73db6329-5af3-4ca2-895f-428fe8de7de9",
"watchers": ["a3fbcd6a-60af-4080-8f04-ae5f2a8d4783", "eceb19d0-5af6-4d03-be5c-0b038a8ed2fc"],
"created_at": "1491214293000000",
"modified_at": "1451214293000000",
"custom_fields": {
"manufacturer": [["Cipla", "Ranbaxy"],["Lupin"]],
"transaction_id": [93933]
},
"state": "new",
"mapped_unique_id": "P10019"
}
Record Audit
Coming soon