Mapping complex types in an OData service to standard properties in your Microsoft Outlook add-in.
A complex type is a structured type that contains a list of properties without a key. Complex types can only exist as properties on entity types, or other complex types.
To map a complex type to a standard Outlook property, open the generated class for the service and add your custom code.
In this guide, we used an example based on the service, GWDEMO, which is shipped with SAP Gateway system for demo purposes. In the example, the template name used in the generated project is EPMAccounts.
For our example, the address property in the service is a complex type, which contains properties, such as, street, country, postal code, and many more.
The following is an overview of the steps:
this.AddPropertyToDataGrid("Address.CountryText", userProperties, itemCreate); this.AddPropertyToDataGrid("Address.AddressTypeCode", userProperties, itemCreate);