Hi, I've added some code in the API to show a pop-up box whenever there is a record with a gone away address attribute. However I only want it to show when the similarity score is between two figures and needs to be matched manually on import. I found some code which starts If Import.ScoreSimilarity but not sure how to incorporate it correctly. My code is below.
Public Overrides Sub AfterConstituentOpen(ByVal oRec As Blackbaud.PIA.RE7.BBREAPI.CRecord, ByVal Cancel As ImportOM.API.iCancel)
If import.Fields.GetByExcelName("CP").Value <> "" Then
MsgBox ("Next one is Goneaway - If address match appears please do not ignore")
Interesting, I didn't even realize that was there! I just took a look at what intellisense would tell me about Import.ScoreSimilarity and got the following:
So String1 would be the existing address, String2 would be the incoming address and the result would be the score as an integer.
Thanks John, I've also found a few other useful posts around this as follows:
I'll need to park this for now due to other work but will post back if I do figure it out!