✅ Successfully obtained Zoho Access Token. 🔍 Found 12 total accounts, grouped into 8 unique names.


Processing duplicates for account name: 'CONTACT HAS NO EMAIL ADDRESS' (2 records found)
Master Zoho ID: 1692773000304769735
IDs to merge into master: 1692773000155760325
Attempting to merge ID 1692773000155760325 into master 1692773000304769735...
❌ FAILED to merge ID 1692773000155760325. Response: {"merge":[{"code":"INVALID_DATA","details":{"api_name":"data","json_path":"$.merge[0].data[0].id"},"message":"The child record id entered is not valid","status":"error"}]}
❌ Skipping database update for 'CONTACT HAS NO EMAIL ADDRESS' due to merge failure.



Processing duplicates for account name: 'Mr - j_h_cooper@hotmail.com' (2 records found)
Master Zoho ID: 1692773000305012888
IDs to merge into master: 1692773000298043934
Attempting to merge ID 1692773000298043934 into master 1692773000305012888...
❌ FAILED to merge ID 1692773000298043934. Response: {"merge":[{"code":"INVALID_DATA","details":{"api_name":"data","json_path":"$.merge[0].data[0].id"},"message":"The child record id entered is not valid","status":"error"}]}
❌ Skipping database update for 'Mr - j_h_cooper@hotmail.com' due to merge failure.



Processing duplicates for account name: 'Renew Biopharma, Inc.' (3 records found)
Master Zoho ID: 1692773000296774285
IDs to merge into master: 1692773000304160425, 1692773000304170480
Attempting to merge ID 1692773000304160425 into master 1692773000296774285...
❌ FAILED to merge ID 1692773000304160425. Response: {"code":"INVALID_DATA","details":{"resource_path_index":1},"message":"Master record is not found","status":"error"}
❌ Skipping database update for 'Renew Biopharma, Inc.' due to merge failure.

🎉 Script finished successfully.