Pierre Savard

Hi, what is the best way to compare to email, contact, task, or appointement to syncrhonise then

The email have a an entryID this ID are unique What about 2 email from to different outlook, the entryID will be different In this case comparing the subjet and the creation date are enought

What about task, appointement and contact They have entryID

waht is the best practice
Thanks



Re: Visual Studio Tools for Office Synch email, task appointement and contact

Helmut Obertanner

Hello Pierre,

as I know the EntryID sometimes changing, e.g. when the Item is moved to another folder.

So maybe the ConversationTopic could be an option for you - or

Whenever you process an Item, save a unique ID (Guid) into an unused field like mileage.

Hope this helps,

greets, Helmut






Re: Visual Studio Tools for Office Synch email, task appointement and contact

Pierre Savard

Ok for the GUID, my system aleready work like with this.

My question is more, witch fields I must comprare to be able to said this 2 item are the same. I need to compare:

Email

Task

Appointement

Contact.

Maybe just with the creationtime, subject and size

Or with a user property used like a timestamp and an DB field (for example: LastChangeDate)

Thanks





Re: Visual Studio Tools for Office Synch email, task appointement and contact

X4U

Hello Pierre,

if I must sync - I would save a Guid in the mileage field - no userproperty.

for contacts you can use the user1 - user4 fields.

For email -> there's no such field for saving a guid - so here I would use the conversationindex of the email.

Why

-> If e.g. the customer syncs the data with activesync with pocket pc - only standard fields are synced - no userproperties.

When an item has been updated and synced back to outlook you will loose the userproperties.

Just my expirience.

Hope this helps,

greets, Helmut






Re: Visual Studio Tools for Office Synch email, task appointement and contact

Pierre Savard

Thanks, its more clear now...

But is quite confusing, I just found that Microsoft CRM Keep ID (GUID) of the DB to be able to synch back in 5 user property. The point that pocket PC with active synch can erase the user property when synced back is anoying! I will make more search on this.

By the way, to compare two contact, the GUID link to the correct DB entry, but do I have to loop trought all fields to compare correctly 2 items It is a good practice to add a ChangeDate field like a TimeStamp to compare

Thanks