FIX1.06.06 · Released 29 January 2013
FIXfinPOWER Connect
Released in
1.06.06
29 January 2013
  1. Opened30 Nov 2012
  2. Closed30 Nov 2012
  3. Released29 Jan
Article 10754 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.