MessageClass

J

John Smith

Hello,

Im changing item messageclass and though item's messagecass does change
outlook opens old form when user clicks that item. Any tricks changing
messageclass so that it whould use new form?
thanks
 
H

Helmut Obertanner

Hello,

you could try this script.
Make sure you have published the new form as Administrator.

'Select the Folder in Outlook
Sub ChangeMessageClass()
Dim objItem

For Each objItem In ActiveExplorer.CurrentFolder.Items
objItem.MessageClass = "IPM.My.MessageClass"
objItem.Save
Next

End Sub

--
regards,
Helmut Obertanner
DATALOG Software AG
http://www.datalog.de
[obertanner at datalog dot de]
 
J

John Smith

Thats what i do and message class changes. But Outlook still uses old
messageclass form when opening that item.


Helmut Obertanner said:
Hello,

you could try this script.
Make sure you have published the new form as Administrator.

'Select the Folder in Outlook
Sub ChangeMessageClass()
Dim objItem

For Each objItem In ActiveExplorer.CurrentFolder.Items
objItem.MessageClass = "IPM.My.MessageClass"
objItem.Save
Next

End Sub

--
regards,
Helmut Obertanner
DATALOG Software AG
http://www.datalog.de
[obertanner at datalog dot de]
John Smith said:
Hello,

Im changing item messageclass and though item's messagecass does change
outlook opens old form when user clicks that item. Any tricks changing
messageclass so that it whould use new form?
thanks
 
H

Helmut Obertanner

Hi John,

please show the field MessageClass in your view and make sure the items have
the new messageclass.
Also try to create a new item and when saved it has the new messageclass.

If you have a script in your custom form, integrate an err handler to see if
there's a problem when loading an old item with the new form.

maybe you changed a comboitem or removed a field from the new form, etc.


--
regards,
Helmut Obertanner
DATALOG Software AG
http://www.datalog.de
[obertanner at datalog dot de]

John Smith said:
Thats what i do and message class changes. But Outlook still uses old
messageclass form when opening that item.


Helmut Obertanner said:
Hello,

you could try this script.
Make sure you have published the new form as Administrator.

'Select the Folder in Outlook
Sub ChangeMessageClass()
Dim objItem

For Each objItem In ActiveExplorer.CurrentFolder.Items
objItem.MessageClass = "IPM.My.MessageClass"
objItem.Save
Next

End Sub

--
regards,
Helmut Obertanner
DATALOG Software AG
http://www.datalog.de
[obertanner at datalog dot de]
John Smith said:
Hello,

Im changing item messageclass and though item's messagecass does change
outlook opens old form when user clicks that item. Any tricks changing
messageclass so that it whould use new form?
thanks
 
S

Sue Mosher [MVP]

Try loading a new item once with the newly published form to refresh the cache. It may help (and certainly makes troubleshooting easier) to increment the version number each time you republish.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

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