Mautic 5: Importing contacts with custom IDs using CSV

My Mautic version is: 5
My PHP version is: 8.1
My Database type and version is: Mysql5.*

Hi everyone,

I’m aware it’s generally not advisable to set the ID field when importing contacts into Mautic. However, in Mautic 4, I was able to achieve this without issue. Now, in Mautic 5, Mautic automatically generates unique IDs, which throws a wrench in my plans.

My goal is to utilize the API to fetch and patch data into Mautic using my own custom IDs. However, since Mautic assigns its own IDs now, I need to find the corresponding Mautic ID for each of my custom IDs first.

Has anyone encountered a similar challenge? Any suggestions on how to best tackle this? Perhaps there’s a way to map my custom IDs to Mautic IDs during the import process, or maybe there’s another approach to achieving my desired outcome.

I appreciate any insights and advice!