Start a new topic

API Similarity Score coding

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.

Many thanks

Davina



Public Overrides Sub AfterConstituentOpen(ByVal oRec As Blackbaud.PIA.RE7.BBREAPI.CRecord, ByVal Cancel As ImportOM.API.iCancel)

MyBase.AfterConstituentOpen(oRec, Cancel)

 

 If import.Fields.GetByExcelName("CP").Value <> "" Then

 MsgBox ("Next one is Goneaway - If address match appears please do not ignore")

 End If

 

End sub



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

Thanks John, I've also found a few other useful posts around this as follows:

https://omaticsoftware.freshdesk.com/support/discussions/topics/28000007535

https://omaticsoftware.freshdesk.com/support/discussions/topics/28000007471#2735


I'll need to park this for now due to other work but will post back if I do figure it out!


Best wishes

Davina

Login or Signup to post a comment