Outlook shortcut

M

Mil

Is it possible to create a shortcut in Outlook so that anyone can access a
form that I have just created?

The form is of IPM.Note type.

Thanks

Mil
 
B

Bryan Dickerson

Forgive me for butting in, but this fits a problem that my company has been
having on an Outlook app for a while now and it has recently come under my
jurisdiction/responsibility to try and fix. We have an app that creates an
email with a link to a custom form and sends it, but the user can't click
the link and open the form unless 1 of 2 things happen: either the entire
body of the email is highlighted or the user clicks the "Forward" or "Reply"
buttons, then the link will open. What gives?

Thanks in advance for your help.
 
S

Sue Mosher [MVP-Outlook]

How are you creating the link?

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

Bryan Dickerson

With the following code:

Set currItem = myOlApp.ActiveInspector.CurrentItem
Set MyAttachments = MyItem.Attachments
MyAttachments.Add currItem, 4
 
S

Sue Mosher [MVP-Outlook]

So this is a link to an item, not a link to launch a new instance of a
custom form, right? What version of Outlook?

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

Bryan Dickerson

Yes, this is a link to an existing item. There are several versions of
Outlook running here. Any that access this form via the link are at least
Outlook 2K, but there is also Outlook XP and 2003.
 
S

Sue Mosher [MVP-Outlook]

I usually use a text link with the outlook: syntax -- see
http://www.slipstick.com/outlook/links.htm . The two main drawbacks are
that, if you use the EntryID syntax, it won't work with public folder items
until the user has accessed the Public Folders hierarchy once during the
session, and the name syntax has an obvious disadvantage if your application
supports items with duplicate subjects.

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

Bryan Dickerson

What "name syntax" are you referring to?

Sue Mosher said:
I usually use a text link with the outlook: syntax -- see
http://www.slipstick.com/outlook/links.htm . The two main drawbacks are
that, if you use the EntryID syntax, it won't work with public folder items
until the user has accessed the Public Folders hierarchy once during the
session, and the name syntax has an obvious disadvantage if your application
supports items with duplicate subjects.

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



"Forward"
 
B

Bryan Dickerson

I'm sorry, but to me this doesn't quite make sense. My original question
was that the link on an email that some of my custom forms are creating is
not working when you just open the received email, but does work when you
attempt to forward or reply to the email. So I read thru the page reference
and didn't see anything pertaining to shortcuts and/or how to program them.
Am I missing something?
 
K

Ken Slovak - [MVP - Outlook]

Sorry, I came in at the middle of this to cover for Sue while she's on
vacation.

The proper syntax she was referring to is like this:

Item in a folder (note the tilde ~ in front of the specific item name)
<Outlook:Contacts/~Anglo-American School>
Any item <Outlook:entryID> where entryID is the long ID associated
with the item


As shown on the http://www.slipstick.com/outlook/links.htm Web page.
 
B

Bryan Dickerson

Sue or Ken,

So in my custom form, I have a UserProperty called "TicketID". Could I
reference a specific TicketID number from an email by putting the following
code in an email: Outlook:FolderName/~123456 where 123456 is my "TicketID"
number? Would I have to 'fully qualify' the folder name(like "Public
Folders\All Public Folders\FolderName/~123456")?

Thanks for your help!
 
S

Sue Mosher [MVP-Outlook]

No, and no. The first syntax isn't valid at all. And the second looks for
the value 123456 in the Subject field only.

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

Ken Slovak - [MVP - Outlook]

Two for the price of one <g>

And for the second syntax you must use the item EntryID and if you're using
Exchange you have to make sure it's the long EntryID and not the short
EntryID. You'd get that from the MAPI property
PR_LONGTERM_ENTRYID_FROM_TABLE (&H66700102).
 
B

Bryan Dickerson

Thanks for both of your responses! But I figured out something else that
works just as well. The subject of the Task is the key. I tried it
yesterday afternoon with a user here at the company and put a link like
Outlook:\\Public Folders\All Public Folders\FolderName\~SubjectLine and it
works great! What's better is that it also solves my dilemma with getting a
direct link from a VB6 program to the task. Now I haven't started coding
the VB6 part yet, so watch it not work! ;-)
 
B

Bryan Dickerson

Murphy's Law strikes again!

Ok, in my code I have the following:
oOMail.Body = "Tag! You're it! You have the next action on this Item: " &
chr(13) & chr(13) & "<Outlook:\\" & FolderPath & "/~" & Item.Subject & ">"

FolderPath is just a constant to the actual path (which is meaningless for
this discussion). But when the email actually comes up to be displayed, it
is not being resolved to link. What gives?
 
B

Bryan Dickerson

HTML

Sue Mosher said:
What format is the message coming up as -- plain text, HTML or RTF?

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



and
 
S

Sue Mosher [MVP-Outlook]

What format is the message coming up as -- plain text, HTML or RTF?

--
Sue Mosher, Outlook MVP
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