Reputation: 515
We are facing problem with profilesync service of audience manager.
We have the scenario, where we are doing subscription in 2 steps:
These 2 steps are run one after other.
Also we have 87 websites where we have different address book and one single synchronization target settings.
We are facing problem with synchronization, sometime record is updating but sometime record is not updating by step 2.
any suggestion please?
Upvotes: 1
Views: 170
Reputation: 4829
In the past, we have to set the contact AddressBookId in order to sync to specific address book.
testContact.setGroupId(20); // 20 is the address book id
This is java sample code. for .net I believe it is testContact.AddressBookId = 20 .
Upvotes: 1
Reputation: 1900
Are you directly adding the records to the database? This is not supported and can interfer with the proper working of the syncing process.
If you use the API to update the record (on the Content Manager or on the Content Delivery side) it will automatically trigger the sync service and makes sure the information is synced correctly
A small (java) example based on your requirements:
Contact testContact = new Contact();
testContact.setExtendedDetail("Email", "[email protected]");
testContact.setExtendedDetail("MobileNr", "1234567890");
Calendar calendar = Calendar.getInstance();
calendar.set(1970, Calendar.OCTOBER, 17, 0, 0, 0); // 17 okt 1970
testContact.getDetails().get("dateOfBirth").setFieldValue(calendar.getTime());
testContact.save();
Upvotes: 9