Article Details
Id: | 10754 |
Product: | finPOWER Connect |
Type: | FIX |
Version: | 1.06.06 |
Opened: | 30/11/2012 |
Closed: | 30/11/2012 |
Released: | 29/01/2013 |
Job: | J010849 |
finClientContactMethods.GetCurrentContactMethod method issues
The business layer finClientContactMethods.GetCurrentContactMethod method was not using the following parameters correctly to retrieve a Contact Method:
- contactHome
- contactMobile
- contactWork
This method returns only current Contact Methods (as per the specified dateAsAt) and also only Contact Methods with a blank a Category if no Contact Method Id is supplied.
The following example show how the various flags are used:
' Get the first current Phone type contact where the Contact Method has the 'Work' flag checked
Client.ContactMethods.GetCurrentContactMethod(isefinContactType.Phone, "", Now.Date, iseTriState.None, iseTriState.None, iseTriState.True).Value
' Get the first current Phone type contact with a Contact Method of 'MOB'
Client.ContactMethods.GetCurrentContactMethod(isefinContactType.Phone, "MOB", Now.Date, iseTriState.None, iseTriState.None, iseTriState.None).Value
NOTE: Certain combinations of parameters do not make sense, e.g., if you specify a Contact Method Id then you should either omit or set the contactHome, contactMobile and contactWork parameters to iseTriState.None since the Contact Method itself defines these flags.