Setting the default fields for ContactAddress
Use this procedure to enable the mapping of AccountAddress to ContactAddress fields.
- Select System Configuration > Dialog design.
- Open the ContactAddress dialog to enable the feature in either desktop or mobile phone.
- Right-click the Address Type field in the dialog.
- Select Properties and Set User Defined Data.
-
Specify this user defined data:
Note: The user defined data is a JSON object. For the functionality to work, the user defined data should follow the specified format expected by the application with prefix of
CLM@SetMappedValuesFromParentList =
.CLM@SetMappedValuesFromParentList={ "ParentEntityTable": { "Name": "Account", "ChildTable": "AccountAddress", "FilterGroupID": "BF0EFAC9-B5AA-46BC-84C6-E18D39ACD2FE" }, "ChildEntityTable": { "Name": "Contact", "ChildTable": "ContactAddress", "FilterGroupID": "3BF0EFED-A4C4-4C31-AB49-25DEEB805871" }, "SupportedTypes": [{ "ParentGUID": "1FB534CA-41DE-4067-8AA3-09586D9BF30E", "ChildGUID": "1FB534CA-41DE-4067-8AA3-09586D9BF30E", "Fields": { "Key":"Value" } } ] }
where:ParentEntityTable
is the object where child table will get the parent table values.Name
is the name of the parent table.ChildTable
is child of parent table where data is copied from.FilterGroupID
is the FiltergroupId of control where data are copied. This only applies for mobile applications.
ChildEntityTable
is the object where data from parent entity table is mapped.Name
is the name of the parent table.ChildTable
is child of parent table where data is copied from.FilterGroupID
is the FiltergroupId of control where data are copied. This only applies for mobile applications.
SupportedTypes
is a collection of AddressTypes codes that are mapped. You can specify multiple supported types for this data.ParentGUID
is the GUID of the AddressType where data are taken from.ChildGUID
is the GUID of the AddressType where data are mapped into..Fields
are fields in the Child table that is mapped. These field names are available in LCLM toolbox through Translation > Table and Column Descriptions > Account/Address and Account.
Note: TheKey
in the fields object corresponds to the field name of the child table where the values from the parent is to be mapped. TheValue
corresponds to where the data are taken from the parent field name supplied.