EntryID changed after version upgrade?

K

Kristian

Hi all,
Does anyone know if Outlook items get new EntryID:s when you make a version
upgrade?
When upgrading from OL 2002 to 2003 (and upgrading Exchange Server from 2000
to 2003) our custom Contact folder stopped working.
We have a public folder that stores Company items and anpther folder that
stores Contact items (people working at the companies).
On the server there's a database storing which company EntryID match which
contact EntryID (to make the company item list their contacts).
Did I do any classic mistake?

Tia,
Kristian
 
K

Kristian

The Company item has the EntryID field populated but
the Contact item believs the objItem.EntryID is empty (objItem = Company item)
The Function FindEntryID worked fine on Exchange 2000 and Outlook 2002.
Are there any scope changes for the EntryID field?

Please?



:

Hi all,
Does anyone know if Outlook items get new EntryID:s when you make a version
upgrade?
When upgrading from OL 2002 to 2003 (and upgrading Exchange Server from 2000
to 2003) our custom Contact folder stopped working.
We have a public folder that stores Company items and anpther folder that
stores Contact items (people working at the companies).
On the server there's a database storing which company EntryID match which
contact EntryID (to make the company item list their contacts).
Did I do any classic mistake?

Tia,
Kristian
 
S

Sue Mosher [MVP-Outlook]

The functionality of EntryID hasn't changed. Every item has one.

You might want to provide details about the server -- whether it was an in-place upgrade -- and the FindEntryID function you referred to.
 
K

Kristian

The Exchange 2003 was installed on a new server and then the public folders
were migrated there.

Function FindEntryID(CompName)
Dim oMAPI
Dim oCompaniesFolder
Dim i
Dim objItem

On Error resume next

If CompName = "" Then
FindEntryID = "CompNameTom"
Else

Set oMAPI = Application.GetNamespace("MAPI")
Set oCompaniesFolder = oMAPI.Folders("Public
Folders").Folders("All Public Folders").Folders("SAL Companies")
Set colFullSALCompanies = oCompaniesFolder.Items
Set objItem = colSALCompanies.Find("[CompanyName] = '" & CompName &
"'") '
FindEntryID = objItem.EntryID
Exit Function
End If
End Function

/Kristian
 
S

Sue Mosher [MVP-Outlook]

If the folders were migrated to a new server rather than upgraded in place, the EntryIDs all changed because you effectively created new items.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Kristian said:
The Exchange 2003 was installed on a new server and then the public folders
were migrated there.

Function FindEntryID(CompName)
Dim oMAPI
Dim oCompaniesFolder
Dim i
Dim objItem

On Error resume next

If CompName = "" Then
FindEntryID = "CompNameTom"
Else

Set oMAPI = Application.GetNamespace("MAPI")
Set oCompaniesFolder = oMAPI.Folders("Public
Folders").Folders("All Public Folders").Folders("SAL Companies")
Set colFullSALCompanies = oCompaniesFolder.Items
Set objItem = colSALCompanies.Find("[CompanyName] = '" & CompName &
"'") '
FindEntryID = objItem.EntryID
Exit Function
End If
End Function

/Kristian


Sue Mosher said:
The functionality of EntryID hasn't changed. Every item has one.

You might want to provide details about the server -- whether it was an in-place upgrade -- and the FindEntryID function you referred to.
 
K

Kristian

OK, thanks,
I was kind of fearing that (I should have warned the person in time!).
Any tips on why the FindEntryID function can't read the EntryID?
Before I get it to work the Company items won't list their contacts even if
we go through all contact items and hook them up with correct company again.

Appreciate all help!
/Kristian


Sue Mosher said:
If the folders were migrated to a new server rather than upgraded in place, the EntryIDs all changed because you effectively created new items.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Kristian said:
The Exchange 2003 was installed on a new server and then the public folders
were migrated there.

Function FindEntryID(CompName)
Dim oMAPI
Dim oCompaniesFolder
Dim i
Dim objItem

On Error resume next

If CompName = "" Then
FindEntryID = "CompNameTom"
Else

Set oMAPI = Application.GetNamespace("MAPI")
Set oCompaniesFolder = oMAPI.Folders("Public
Folders").Folders("All Public Folders").Folders("SAL Companies")
Set colFullSALCompanies = oCompaniesFolder.Items
Set objItem = colSALCompanies.Find("[CompanyName] = '" & CompName &
"'") '
FindEntryID = objItem.EntryID
Exit Function
End If
End Function

/Kristian


Sue Mosher said:
The functionality of EntryID hasn't changed. Every item has one.

You might want to provide details about the server -- whether it was an in-place upgrade -- and the FindEntryID function you referred to.

The Company item has the EntryID field populated but
the Contact item believs the objItem.EntryID is empty (objItem = Company item)
The Function FindEntryID worked fine on Exchange 2000 and Outlook 2002.
Are there any scope changes for the EntryID field?

Please?



:

Hi all,
Does anyone know if Outlook items get new EntryID:s when you make a version
upgrade?
When upgrading from OL 2002 to 2003 (and upgrading Exchange Server from 2000
to 2003) our custom Contact folder stopped working.
We have a public folder that stores Company items and anpther folder that
stores Contact items (people working at the companies).
On the server there's a database storing which company EntryID match which
contact EntryID (to make the company item list their contacts).
Did I do any classic mistake?
 
S

Sue Mosher [MVP-Outlook]

Maybe Find isn't returning an item?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Kristian said:
OK, thanks,
I was kind of fearing that (I should have warned the person in time!).
Any tips on why the FindEntryID function can't read the EntryID?
Before I get it to work the Company items won't list their contacts even if
we go through all contact items and hook them up with correct company again.

Appreciate all help!
/Kristian


Sue Mosher said:
If the folders were migrated to a new server rather than upgraded in place, the EntryIDs all changed because you effectively created new items.

Kristian said:
The Exchange 2003 was installed on a new server and then the public folders
were migrated there.

Function FindEntryID(CompName)
Dim oMAPI
Dim oCompaniesFolder
Dim i
Dim objItem

On Error resume next

If CompName = "" Then
FindEntryID = "CompNameTom"
Else

Set oMAPI = Application.GetNamespace("MAPI")
Set oCompaniesFolder = oMAPI.Folders("Public
Folders").Folders("All Public Folders").Folders("SAL Companies")
Set colFullSALCompanies = oCompaniesFolder.Items
Set objItem = colSALCompanies.Find("[CompanyName] = '" & CompName &
"'") '
FindEntryID = objItem.EntryID
Exit Function
End If
End Function

/Kristian


:

The functionality of EntryID hasn't changed. Every item has one.

You might want to provide details about the server -- whether it was an in-place upgrade -- and the FindEntryID function you referred to.
The Company item has the EntryID field populated but
the Contact item believs the objItem.EntryID is empty (objItem = Company item)
The Function FindEntryID worked fine on Exchange 2000 and Outlook 2002.
Are there any scope changes for the EntryID field?

Please?



:

Hi all,
Does anyone know if Outlook items get new EntryID:s when you make a version
upgrade?
When upgrading from OL 2002 to 2003 (and upgrading Exchange Server from 2000
to 2003) our custom Contact folder stopped working.
We have a public folder that stores Company items and anpther folder that
stores Contact items (people working at the companies).
On the server there's a database storing which company EntryID match which
contact EntryID (to make the company item list their contacts).
Did I do any classic mistake?
 
K

Kristian

Yep,
objItem is populated and
objItem.EntryID has a value...
Weird huh?

if, IF the debugger fools me and it's the open item's EntryID and not the
one I'm searching, Why? The Company item HAS an EntryID and Find finds
objItem.
I've tried adding contacts to several different new and old companies, can't
find any more info. Any ideas?
/Kristian


Sue Mosher said:
Maybe Find isn't returning an item?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Kristian said:
OK, thanks,
I was kind of fearing that (I should have warned the person in time!).
Any tips on why the FindEntryID function can't read the EntryID?
Before I get it to work the Company items won't list their contacts even if
we go through all contact items and hook them up with correct company again.

Appreciate all help!
/Kristian


Sue Mosher said:
If the folders were migrated to a new server rather than upgraded in place, the EntryIDs all changed because you effectively created new items.

The Exchange 2003 was installed on a new server and then the public folders
were migrated there.

Function FindEntryID(CompName)
Dim oMAPI
Dim oCompaniesFolder
Dim i
Dim objItem

On Error resume next

If CompName = "" Then
FindEntryID = "CompNameTom"
Else

Set oMAPI = Application.GetNamespace("MAPI")
Set oCompaniesFolder = oMAPI.Folders("Public
Folders").Folders("All Public Folders").Folders("SAL Companies")
Set colFullSALCompanies = oCompaniesFolder.Items
Set objItem = colSALCompanies.Find("[CompanyName] = '" & CompName &
"'") '
FindEntryID = objItem.EntryID
Exit Function
End If
End Function

/Kristian


:

The functionality of EntryID hasn't changed. Every item has one.

You might want to provide details about the server -- whether it was an in-place upgrade -- and the FindEntryID function you referred to.


The Company item has the EntryID field populated but
the Contact item believs the objItem.EntryID is empty (objItem = Company item)
The Function FindEntryID worked fine on Exchange 2000 and Outlook 2002.
Are there any scope changes for the EntryID field?

Please?



:

Hi all,
Does anyone know if Outlook items get new EntryID:s when you make a version
upgrade?
When upgrading from OL 2002 to 2003 (and upgrading Exchange Server from 2000
to 2003) our custom Contact folder stopped working.
We have a public folder that stores Company items and anpther folder that
stores Contact items (people working at the companies).
On the server there's a database storing which company EntryID match which
contact EntryID (to make the company item list their contacts).
Did I do any classic mistake?
 
K

Kristian

I'm picking this up again:
Please Sue (or anyone),
Are we getting to the point when all the code needs to be viewed?
I really need to get this working asap.
Thanks!
Kristian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top