How to access Maximizer using MaAccessLib
From LeonWiki!
Overview
We want to use the Maximizer typelib 'MaAccess.dll' to access Maximizer programatically. We want to use com4j, so that we can call the typelib methods from java, and hence from jython. Once this is accomplished, we will be able to access Maximizer's CRM records, to obtain company address information for emailing, as well as attach documents (the license renewal text files) to each Company. The document attachments are now performed manually.
Implementation
- Create a "wrapper" library that accesses the MaAccessLib methods.
- Create a high level interface to this library that contains the methods:
- getPrimaryContacts(String clientId)
- getSecondaryContacts(String clientId)
- getRenewalMethod(String clientId)
- getRenewalFrequency(String clientId)
- getCompanyName(String clientId, String contactNumber)
- getPeopleForClient(String clientId, String contactNumber)
- getAddress(String clientId)
- getEmail(String clientId, String contactNumber)
How to get the value of a multi-valued UDF
- From the IDetailDefs interface, obtain the value for type_id and contact_number by setting the description property.
- Use those two values to set the associated properties on the IDetail com4j interface giving all AddressBook records tagged with that UDF
