Hi All,

Thanks all in advance..

I am writing a plugin for POOM, adding a custom field in Contacts. This came
as a success and could able to do it. But while syncing this additional
custom filed is not syncing with the desktop. So I started wtiting an
ActiveSync Service for this custom filed. I thought it might be easy. But
when I dig further a lot many problems arise.

I'm getting the custom field data by calling GetIDsFromNames() and
GetItemFromOidEx(). the oid's I'm getting from poomobj->get_oid().

I'm not able to get the required information for populating the OBJTYPEINFO
in GetObjTypeInfo().

The CEOID I'm getting in the ObjectNotify is not at all matching with the
oid's. I'm stuck up totally and couldn't able to move further.

Like to get the information how to implement this feature. Is it possible to
do this in WM 5.0? Appreciate for the valid reply. Will be good if aby one
can refer somebody who already did this..

Thanking you..

Re: ActiveSync Service Provider for custom contacts by ndc72uk

ndc72uk
Thu May 10 20:06:07 CDT 2007

To be honest I think you are wasting your time with this one. The
service provider code appears to no longer function correctly with WM5
and later in regards the pim databases. I believe this is due to the
switch to EDB databases, the service provider code relied on CEDB
databases so the notification objects (ObjectNotify) are useless. I
have looked at this myself and the oid's given back appear to be from
the notification db queue and I don't know the format of the queue db
or if it can even be opened. I have been looking and asking questions
about this type of thing for a while now with no luck. I have even
suggested that a modification time stamp be written to the pim
database, so you can access this either directly or by using Pocket
Outlook, looking at WM6 it appears to still be the same as WM5.
Relying on the notification mechanism kind of works, when looking for
changes, but fails on some devices and seems to fail to notify when a
new record has been added to the Pocket Outlook Calendar. With this
in mind I have been looking for alternative ways of picking up
changes, the only possible way I found was using the Transaction Api,
which works but it returns search id's back rather than relevant
record id's and there seems to be functionality missing in that Api.
There seems no way of converting the search id's to valid record
id's. In some cases it's not always such a good idea to have to rely
on windows messaging, not when dealing with databases and records they
need time stamps. That being said the Outlook sync must work, so
there must be hidden api's somewhere or the SDK's are missing lib's
and header files.

If you hit on anything drop me an email.

Thanks...

On May 10, 3:06 am, S.Kumar <SKu...@discussions.microsoft.com> wrote:
> Hi All,
>
> Thanks all in advance..
>
> I am writing a plugin for POOM, adding a custom field in Contacts. This came
> as a success and could able to do it. But while syncing this additional
> custom filed is not syncing with the desktop. So I started wtiting an
> ActiveSync Service for this custom filed. I thought it might be easy. But
> when I dig further a lot many problems arise.
>
> I'm getting the custom field data by calling GetIDsFromNames() and
> GetItemFromOidEx(). the oid's I'm getting from poomobj->get_oid().
>
> I'm not able to get the required information for populating the OBJTYPEINFO
> in GetObjTypeInfo().
>
> The CEOID I'm getting in the ObjectNotify is not at all matching with the
> oid's. I'm stuck up totally and couldn't able to move further.
>
> Like to get the information how to implement this feature. Is it possible to
> do this in WM 5.0? Appreciate for the valid reply. Will be good if aby one
> can refer somebody who already did this..
>
> Thanking you..



Re: ActiveSync Service Provider for custom contacts by Chani

Chani
Thu Jun 07 18:09:13 CDT 2007

This is correct, with WM5 EDB is used and it does not have the same support
for change tracking. I recommend taking a look at the following blog about
using POOM notifications instead:

http://blogs.msdn.com/ce_base/archive/2005/09/23/473300.aspx

Again, sorry to not have better news :(

--
Chani Johnson
Software Development Engineer
Microsoft Corp.

This posting is provided "AS IS" with no warranties, and confers no rights.
<ndc72uk@hotmail.com> wrote in message
news:1178845566.942529.279990@u30g2000hsc.googlegroups.com...
> To be honest I think you are wasting your time with this one. The
> service provider code appears to no longer function correctly with WM5
> and later in regards the pim databases. I believe this is due to the
> switch to EDB databases, the service provider code relied on CEDB
> databases so the notification objects (ObjectNotify) are useless. I
> have looked at this myself and the oid's given back appear to be from
> the notification db queue and I don't know the format of the queue db
> or if it can even be opened. I have been looking and asking questions
> about this type of thing for a while now with no luck. I have even
> suggested that a modification time stamp be written to the pim
> database, so you can access this either directly or by using Pocket
> Outlook, looking at WM6 it appears to still be the same as WM5.
> Relying on the notification mechanism kind of works, when looking for
> changes, but fails on some devices and seems to fail to notify when a
> new record has been added to the Pocket Outlook Calendar. With this
> in mind I have been looking for alternative ways of picking up
> changes, the only possible way I found was using the Transaction Api,
> which works but it returns search id's back rather than relevant
> record id's and there seems to be functionality missing in that Api.
> There seems no way of converting the search id's to valid record
> id's. In some cases it's not always such a good idea to have to rely
> on windows messaging, not when dealing with databases and records they
> need time stamps. That being said the Outlook sync must work, so
> there must be hidden api's somewhere or the SDK's are missing lib's
> and header files.
>
> If you hit on anything drop me an email.
>
> Thanks...
>
> On May 10, 3:06 am, S.Kumar <SKu...@discussions.microsoft.com> wrote:
>> Hi All,
>>
>> Thanks all in advance..
>>
>> I am writing a plugin for POOM, adding a custom field in Contacts. This
>> came
>> as a success and could able to do it. But while syncing this additional
>> custom filed is not syncing with the desktop. So I started wtiting an
>> ActiveSync Service for this custom filed. I thought it might be easy. But
>> when I dig further a lot many problems arise.
>>
>> I'm getting the custom field data by calling GetIDsFromNames() and
>> GetItemFromOidEx(). the oid's I'm getting from poomobj->get_oid().
>>
>> I'm not able to get the required information for populating the
>> OBJTYPEINFO
>> in GetObjTypeInfo().
>>
>> The CEOID I'm getting in the ObjectNotify is not at all matching with the
>> oid's. I'm stuck up totally and couldn't able to move further.
>>
>> Like to get the information how to implement this feature. Is it possible
>> to
>> do this in WM 5.0? Appreciate for the valid reply. Will be good if aby
>> one
>> can refer somebody who already did this..
>>
>> Thanking you..
>
>