If i have a entry id, how could i get its IABContainer?

Status
Not open for further replies.
R

ryotyankou

I get the item entry id as follow:

1. Use IAddrBook::GetSearchPath get SRowSet.

2. Use PropFindProp check SRowSet for IABContainer PR_ENTRYID.

3. Use IAddrBook::OpenEntry open the entry id to get IABContainer.

4. Use IABContainer::GetContentsTable to get contact table.

5. Then i get wanted items in table and save their entry ids.

Now i have the item entry id, if i want to remove the item, i should call

IABContainer::DeleteEntries, but how could i get IABContainer then?


200911
 
D

Dmitry Streblechenko

Which address entry are yo utryign to delete? Is it one of the OAB entries?

The nyou need to delete the underliying IMessage message or remove the

particular address related properties.

Dmitry Streblechenko (MVP)

-

"ryotyankou " <u48591@uwe> wrote in message

news:9f886e12d9b6e@uwe...
> I get the item entry id as follow:
> 1. Use IAddrBook::GetSearchPath get SRowSet.
> 2. Use PropFindProp check SRowSet for IABContainer PR_ENTRYID.
> 3. Use IAddrBook::OpenEntry open the entry id to get IABContainer.
> 4. Use IABContainer::GetContentsTable to get contact table.
> 5. Then i get wanted items in table and save their entry ids.
> Now i have the item entry id, if i want to remove the item, i should call
> IABContainer::DeleteEntries, but how could i get IABContainer then?

> >
> 200911
>
 
R

ryotyankou

4. Use IABContainer::GetContentsTable to get contact table.

Here, what exactly the item(call it as THIS_ENTRY_ID) in the table is(by

check PR_ENTRY)? IMailUser, IDistList. am i right?

Then IAddrBook::OpenEntry to open the got entry id, what's returned by last

parameter? IMessage, am i right?

And what's the affiliation between contact in Contact folder and

THIS_ENTRY_ID. And contact in contact folder can have three emailaddress, are

the three objects just THIS_ENTRY_ID.

My purpose is quite simple, update contact infos include emailaddress1,

emailaddress2 and emailaddress3. If user set one of them as empty, delete the

address in contact and delete associated "item" in addressbook. That's all.

please help!

Dmitry Streblechenko wrote:
> Which address entry are yo utryign to delete? Is it one of the OAB entries?
> The nyou need to delete the underliying IMessage message or remove the
> particular address related properties.
>
> >I get the item entry id as follow:
> > 1. Use IAddrBook::GetSearchPath get SRowSet.

> [quoted text clipped - 4 lines]
> > Now i have the item entry id, if i want to remove the item, i should call
> > IABContainer::DeleteEntries, but how could i get IABContainer then?



200911
 
D

Dmitry Streblechenko

4. You will get back IMailUser.

The entry id of that IMailUser embeds the entry id of the corresponding

IPM.Contact IMessage as well an an index (1, 2, 3) that indicates which

email address it corresponds to.

You will need to extract IMessage entry id from the IMailuser entry id, open

the IPM.Contact message using IMAPISession::OpenEntry and update the

relevant fields.

Dmitry Streblechenko (MVP)

-

"ryotyankou " <u48591@uwe> wrote in message

news:9fa2559c8a7da@uwe...
> 4. Use IABContainer::GetContentsTable to get contact table.
> Here, what exactly the item(call it as THIS_ENTRY_ID) in the table is(by
> check PR_ENTRY)? IMailUser, IDistList. am i right?
> Then IAddrBook::OpenEntry to open the got entry id, what's returned by
> last
> parameter? IMessage, am i right?

> And what's the affiliation between contact in Contact folder and
> THIS_ENTRY_ID. And contact in contact folder can have three emailaddress,
> are
> the three objects just THIS_ENTRY_ID.

> My purpose is quite simple, update contact infos include emailaddress1,
> emailaddress2 and emailaddress3. If user set one of them as empty, delete
> the
> address in contact and delete associated "item" in addressbook. That's
> all.
> please help!

> Dmitry Streblechenko wrote:
> >Which address entry are yo utryign to delete? Is it one of the OAB
> >entries?
> >The nyou need to delete the underliying IMessage message or remove the
> >particular address related properties.
> >
> >>I get the item entry id as follow:
> >> 1. Use IAddrBook::GetSearchPath get SRowSet.

> >[quoted text clipped - 4 lines]
> >> Now i have the item entry id, if i want to remove the item, i should
> >> call
> >> IABContainer::DeleteEntries, but how could i get IABContainer then?


> >
> 200911
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
K Add an entry to a specific calendar Using Outlook 1
O Unable to make changes to an existing Calendar entry Using Outlook 11
J "Contact" button in Journal entry Using Outlook 1
I Google Calendar <calendar-notification@google.com> appearing as a duplicate entry Using Outlook 2
M Changing the preferred order for "Put this entry in" list for adding new contacts to the Address Book Using Outlook 1
K Selecting a folder from an entry in a Listbox Outlook VBA and Custom Forms 1
J Updating existing entry on shared calendar wants to send update from delegate Using Outlook 0
T Create custom calendar entry form... Outlook VBA and Custom Forms 3
G Outlook calendar entry corrupted. Constant pop up when you open outlook. Unable to delete or remove. Using Outlook 2
T Calendar Entry in Outlook Client but will not sync Exchange Server Administration 1
H Calendar entry reminders in Outlook.com Using Outlook.com accounts in Outlook 11
S Modify recurring outlook invites based on form entry Using Outlook 0
S Calendar deletes appointment after entry from both Outlook and Icloud calander Using Outlook 1
T Contact Field Data not showing in Journal Entry List Using Outlook 4
T Exchange / Outlook 2010 - How to cancel meetings but retain the calendar entry Using Outlook 4
A Remove shared Contacts duplicate entry Using Outlook 3
J [SOLVED] Shared Calendars with Same Appt., How to Show One Entry on Calendar Using Outlook 1
K [SOLVED] Data entry issue BCM (Business Contact Manager) 1
R Missing outloook journal entry pop up windows Using Outlook 13
O Rescheduling appointment on Outlook 2010 for Windows creates duplicate entry Using Outlook 2
C error message: 'you don't have permission to create an entry in this folder' Using Outlook 3
A New Contact entry (custom form) get saved in a public folder and doesn't appear in Outolook Contacts Outlook VBA and Custom Forms 3
B Are their other Outlook Journal entry forms besides the standard? Outlook VBA and Custom Forms 1
S How to italicize the email entry in explorer window Outlook VBA and Custom Forms 3
R How to judge what folder the specified entry id is? Outlook VBA and Custom Forms 8
D Re: How to specify the "current entry id" to GetItemFromID? Outlook VBA and Custom Forms 1

Similar threads

Top