Creation of an unique link to an outlook e-mail - outlook-addin

Background:
Since all tasks, are more or less assigned per E-mail I want track the e-mail via a link in other programs (Project, Planner, Word, Excel, OneNote, ect). This should be possible via the globally unique identifier GUID of the Outlook message & the Outlook URL Protocol.
I can only find instructions on this for older versions - which does not work.
BTW: Tracking via searching on subjects is a pain, since subject changes and conversation history can be long.
Question:
How do generate a link to the e-mail in outlook 365 which is unique and can be opened in other programs (Project, Planner, Word, Excel, OneNote, ect)?
There are other ways possible? Add-in?
This should be It should be possible!
However I do not know how it works with Office 365 --> Pls see following website:
https://www.davidtan.org/create-hyperlinks-to-outlook-messages-folders-contacts-events/
Excerpt out of it:
The Windows operating system recognizes the outlook: tag and whenever it sees that it’s part of a link, it triggers outlook to do something. Depending how you format the hyperlink, you can open messages, folders, contacts and meetings stored in outlook from websites, documents (Word, OpenOffice etc), Excel spreadsheets and powerpoint presentations stored either locally or even over a shared network.
How To Link To Outlook Items:
Outlook Paths
Outlook provides a way to link to any Outlook item using a URL. It can be “path based” like this:
– Outlook:Inbox\
– Outlook:Personal Folders\Contacts\~John Doe
Outlook GUID
You can link to a globally unique identifier (GUID) that is created for an item and doesn’t change when you rename or move it:
– Outlook:000000000EAE44933247899468AC478B81C0BANDHEWR324
It is best to use the GUID URL since you don’t have to worry about changes breaking the link.
If you are after a outlook message, all you have to do is select that message in outlook, and then left-click on the linker icon on the lower right of the taskbar so that the link will get copied. Next, you will just have to paste it somewhere. It works the same way for contacts and even calendar events.
By default, the copied link will be something like this
Email subject here
If you are building a webpage using HTML, then you can merely copy and paste that code to the HTML file, and maybe just changing the link text.
However, if you are working in Excel, what is important is only the part that says:
Outlook:00000000CC63759F18171E46835E96E44971FDFB07006446
In Excel, press CTRL-K in a cell, enter any text you want to be displayed, and paste that piece of code above (ex. outlook:123437654) at the address section. That’s it.
However it does not work with OFFICE 365. May you can help me?
KR Christian

Related

Programmatically track and save changes on a Microsoft Word document

I'm looking for a way to create version control for word documents.
Simply users will allow or deny incoming changes but all actions will be on a web application so I need to modify documents programmatically. I've found an api for word document but I don't know where to start.
https://learn.microsoft.com/en-us/javascript/api/overview?view=common-js-preview
It seems you need to develop a Word add-in which can be run on the web. See Build your first Word task pane add-in for getting started quickly.

How can I do find and highlight text in outlook

I am developing outlook web-Addin visual studio share point developing tool.i want to find a specific word in the document and highlight that word.
#Vishnu Kay Vee
Currently the feature you requested is not a part of the product. However, we track Outlook add-in feature requests on our user-voice page. Please add your request there. Feature requests on user-voice are considered when we go through our planning process.
[Outlook Add-ins Engineering Team]
In the email message or item you're creating, on the Format Text tab, in the Editing group, choose Find.
In the Find what box, type the text that you want to search for.
Choose Reading Highlight > Highlight All.
Note: To turn off highlighting on the screen, choose Reading Highlight > Clear Highlighting.
This link will help you about Find and replace text within an email message or item: https://support.office.com/en-us/article/find-and-replace-text-within-an-email-message-or-item-ee05a4ac-6c30-4687-8098-84f4390d2d6f

VBA when user clicks Send as Attachement

My company has an issue with Outlook when it is triggered to open by Excel that causes Outlook to hang indefinitely when loading (an issue which cannot be easily fixed). We have a few workbooks with custom ribbons where we now check that Outlook is open first before allowing the user to send via email. The problem is that this doesn't account for users that still use the File > Save & Send > Send as Attachment.
I would like to know if anybody knows about a process by which I can add on a routine to the existing button that we could save as an Excel Add In on everyone's Excel that checks first if Outlook is open? I have the Outlook check written so I'm just needing help with finding a way to run it.
Any help is appreciated.
Alternatively you could disable Send as Attachment.
I wouldn't know what is important so I won't copy parts here.
How do you disable “Save and send” in Excel 2010 (in the File ribbon (called backstage in Office 2010)?
Disable the Send button in the Office Menu
You may consider repurposing the ribbon controls. See Temporarily Repurpose Commands on the Office Fluent Ribbon for more information.
Unfortunately the Backstage UI doesn't allow to repurpose controls from the XML markup. You may consider hiding the built-in UI and rebuilding it fully with custom commands. Thus, you will be able to handle the commands on your own. You can read more about that in the Introduction to the Office 2010 Backstage View for Developers article. Also see the Customizing the Office 2010 Backstage View for Developers article.

Outlook 2007 - VBA macro in NormalEmail.dotm

I have a Word 2007 template that I use as Normal.dotm, which has corporate theme, styles, etc., plus a tiny bit of macro code that overrides the default behaviour of the bullet & number buttons on the ribbon.
I'd now like to use this same template when creating emails in Outlook 2007. I've tried just copying my Normal.dotm to NormalEmail.dotm, and to an extent this works, but although my macro is correctly invoked when I press the bullet/number buttons in the email editor, it gives an error:
Run time error 429: ActiveX component can't create object
On further investigation, it seems that anything I do within my macro that references an object in the normal Word object model (Application, Selection, etc.) causes this error. So, even if my macro consists of the following, it still fails:
MsgBox TypeName(Application)
I have an inkling that this is because I'm running in the context of Outlook, not Word, and so perhaps there is no (Word) application, or any of the objects associated with it. I know that the email editor in Outlook is Word-but-not-as-we-know-it-Jim.
Having said that, I did discover that ThisDocument does return a valid Document object; unfortunately, it corresponds to the template itself, not the email being edited.
By trial and error, I've discovered that I can get at the Document corresponding to the email by the following circuitous route (this displays the text in the email):
MsgBox ThisDocument.MailEnvelope.Item.Application.ActiveInspector.WordEditor.Content.Text
However, this code also seems to cause Outlook to crash - not at the time, but later, when you close Outlook.
At this point, I'm just about ready to admit defeat. No doubt the "correct" way to create macros in Outlook is to create them in Outlook itself, but from my limited experience, that's just horrible. (You can create macros in VBA, but you can't deploy them; or, you can create them in VSTO, but then you need an installer rather than simply deploying a template).
So. Any ideas out there that would let me do all that I hoped to do?
Override the behaviour of the bullet/number buttons on the ribbon in the email editor.
Deploy the macros in the NormalEmail.dotm file, rather than having to "install" them.
Not crash Outlook.
Have you tried adding the reference in the VBA editor to the Microsoft Outlook Object Library?
In Outlook 2007 you might also have to add VBA references to "Microsoft Word 12.0 Object Library" and maybe "Microsoft Forms 2.0 Object Library". Different versions may apply for other version years.
In addition, in the macro/code you have to set the objects to get/use the correct methods and properties.
I'm not an OO programmer and usually copy code from elsewhere and modify for my need so I can't help much more than what I said above. (And one of my macros is also giving me the same 429 error you get.)

Using VSTO to perform an action via selected e-mail text in Outlook

This should be pretty a pretty common scenario, but I have not found a solution yet.
I would like to highlight some text within the body of an e-mail and then click on something (context menu, toolbar button, etc) to perform a URL navigation using the selected text. For example, highlight the Fex Ex tracking number and then navigate to their web site using it as a query parameter (like "ww.fedextracking.com?packageid=12345").
How can you capture the selected text within an e-mail and then perform an action? I would greatly appreciate any suggestions or examples.
Thank you!
For Outlook 2007-2010 (or previous versions using WordMail), you can retrieve a Word object from the Inspector.WordEditor property. Then you can work with Word.Selection to access the selected text.
However, for Plain Text or Rich Text scenarios with Outlook 2000-2003, you have to use the SafeInspector object with Redemption (http://www.dimastr.com/redemption/) to access the selected text. I can't remember, but for HTML format messages with Outlook 2003-2003 you may be able to access the selected text with the IHTMLDocument object retrieved from SafeInspector.
I appreciate it's 588 days since you asked your question Loki70, but if somebody else Googles up this page (like I did, looking for how to create a selected text right-click context menu entry) then this may be an answer for you.
I have been using AutoHotKey, which works not just in Outlook, but everywhere in Windows, and have been writing utilities to Google the selected text, open an SSH session in PuTTY to the selected hostname, and similar.
If you don't mind running an extra application on your PC to capture the hotkey combination that you send, then this would do exactly what you're asking.
Here is my post on the AutoHotKey forum with a link to my code:
http://www.autohotkey.com/community/viewtopic.php?t=86402
It would be trivial to adapt this to do the FedEx query you've mentioned.
I hope this helps.