I have an API injecting records into mautic. In several instances the record already exists in mautic but has a different email address. I am able to identify them as being duplicates via matching a custom field, in the case csa_no
Is it possible to create a campaign, or some other method, to automatically check for duplicates based on the custom field and then merge the 2 records?
As you already use the API, maybe you could query for matching contacts and merge the data on your side? In my experience Mautic is very limited when you try to do such things within an campaign.
Not being a coder, could I ask you to break down your code with a few explanations so I can better understand it and adapt it to my needs?
I use n8n to manage the API side of things and they have a function node I could use to get the job done. The hard part for me is the actual function…
Unfortunately I do not have any practical experience with n8n. In lingers in my bucket list for some time now, but as a programmer the more natural way is to code it directly.
Maybe you can try to merge the contacts on the CLI level, but I also did not use that yet.
Look for the command mautic:contacts:deduplicate and for reference here:
I think you may need a helping hand from some IT guy.