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:ParentEntityTableis the object where child table will get the parent table values.Nameis the name of the parent table.ChildTableis child of parent table where data is copied from.FilterGroupIDis the FiltergroupId of control where data are copied. This only applies for mobile applications.
ChildEntityTableis the object where data from parent entity table is mapped.Nameis the name of the parent table.ChildTableis child of parent table where data is copied from.FilterGroupIDis the FiltergroupId of control where data are copied. This only applies for mobile applications.
SupportedTypesis a collection of AddressTypes codes that are mapped. You can specify multiple supported types for this data.ParentGUIDis the GUID of the AddressType where data are taken from.ChildGUIDis the GUID of the AddressType where data are mapped into..Fieldsare 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: TheKeyin the fields object corresponds to the field name of the child table where the values from the parent is to be mapped. TheValuecorresponds to where the data are taken from the parent field name supplied.