get_fields and set_fields are custom functions? is this true? Or are they a custom method?
If so (either), how are they invoked?
Dim method As System.Reflection.MethodInfo = oRec.GetType().GetMethod ("get_Phones")
Dim phones = method.Invoke(oRec, Nothing)
Lisa Folger
Hi,
We are trying to add API code to determine if an incoming phone or email should be marked Primary or not depending on the status of the constituents current phones or emails.
We have upgraded to RE 7.95 and this upgrade changed how phones are stored so we are having some confusion. In order to familiarize ourselves with the new phone fields we have written some code to view the Phone Type in a MsgBox. This way we can be sure that we are accessing the correct fields. However, we are still having some problems as there as still fields marked PreferredAddress.Phones (which isn't where phones are stored anymore so it's confusing).
Here is the code we've started with which is returning a "blank" even though our constituent has a Preferred Email and a Home phone.
Dim oPhones as CConstitPhones
Dim oPhone as IBBPhone
For each oPhone in oRec.PreferredAddress.Phones
MsgBox ("Here is the current phone code: " & oRec.Fields(Blackbaud.PIA.RE7.BBREAPI.EPhonesFields.Phone_fld_PhoneType))
Next oPhone
Any help would be greatly appreciated!
Thanks,
Lisa Folger
W