gpsbr
asked on
HyperLink to outlook message in public folder
Hi all,
I have successfully created an intranet page with links to e-mails in the users' inbox by using:
<a href="Outlook:002740564085 4040000445 6406065">t est</a>
where the number is the actual message's ID I got using the EntryID of the message. What I then did is to move the message to a public folder, but then the link above stops working. I checked the message's ID after I moved it and it stays the same. I have found on the net links of the form:
<a href="Outlook://Public Folders/All Public Folders/~subject>test</a>
but they don't work for me since many times the subject of the messages is identical.
Does anyone know how I can put a link to a message in a public folder using its ID got from the EntryID?
Thanks.
I have successfully created an intranet page with links to e-mails in the users' inbox by using:
<a href="Outlook:002740564085
where the number is the actual message's ID I got using the EntryID of the message. What I then did is to move the message to a public folder, but then the link above stops working. I checked the message's ID after I moved it and it stays the same. I have found on the net links of the form:
<a href="Outlook://Public Folders/All Public Folders/~subject>test</a>
but they don't work for me since many times the subject of the messages is identical.
Does anyone know how I can put a link to a message in a public folder using its ID got from the EntryID?
Thanks.
ASKER
Hi BlueDevilFan,
Just checked what you said and you are right, the ID changes when the message is moved and the link works the same. But how do I know what the new ID is going to be once I move the message?
Tks
Just checked what you said and you are right, the ID changes when the message is moved and the link works the same. But how do I know what the new ID is going to be once I move the message?
Tks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi BlueDevilFan,
Just found it. Move is a function, not a sub. all you have to do is:
set test = curitem.move(destinationfo lder)
and then
test.EntryID
gives you the new ID.
I will give you the points. Thanks for the prompt help!
Just found it. Move is a function, not a sub. all you have to do is:
set test = curitem.move(destinationfo
and then
test.EntryID
gives you the new ID.
I will give you the points. Thanks for the prompt help!
gpsbr,
You're welcome. Glad I could help out.
You're welcome. Glad I could help out.
The EntryID of the SHOULD NOT be the same in the public folder as it was in the Inbox. An item's EntryID is based on the message store the item is in. Public Folders is a different message store than either an online mailbox or any PST file. The link syntax for opening an item by its EntryID from a public folder is the same as for opening it from an Inbox.
Cheers!