Send an individual attachment from Outlook to OneNote - outlook

I frequently use the "Send to OneNote" button in MS Outlook to save emails and their attachments in my notebooks. This allows me to accumulate an array of different inputs (e.g. email, reports, estimates in spreadsheets, etc, etc - I'm preaching to the converted, I think).
Often, I'd like to move a single email attachment to a OneNote page. My process for this is:
open the email
save the attachment to the Desktop
open the desired destination page in OneNote
drag the file from the Desktop to the OneNote page
select the "Insert the file as printout so I can add notes to it" option
I do this to save only the attachment I need and avoid saving the contents of the email and all the other attachments.
Can I send an individual attachment directly from Outlook to a OneNote page?

Shortly after writing this question (actually, as I was writing the question!), I found an answer that works for me.
Click and drag the attachment filename from the Outlook email directly to a OneNote page. The file insert dialog then pops up allowing insertion of an icon or printout.

Related

How to create a power automate flow that opens a link in an outlook email (with excel file in it) and save it into sharepoint?

I need to open a excel spreadsheet link that I receive in my outlook email almost everyday ,and and save that file in a sharepoint folder. But how can I do it using power automate ?

Interactive message button to copy contents to clipboard

my bot returns some contents and I want to copy that content over to the clipboard. Obviously, the user can select the content and copy. But, from a UI perspective since this is a slack BOT, I was thinking about adding an interactive button - "copy" which when clicked will copy the contents to the clipboard. I know this sounds weird but this was an ask from an exec for whom I am building the app. Let me know if you need more details.
Interactive buttons in Slack do not directly support copying content to the user's clipboard. They only do one of two things:
Send a request to a Slack app for further processing (see interactive buttons)
Redirect the user to a webpage (see link buttons)
However, to implement this feature you could redirect to a webpage that implements the copy to clipboard feature via java script (example).

Redemption updating Outlook appointment potentially causing Outlook save error

I have an application that syncs appointments between Outlook and my application. The syncing code uses Redemption to update the appointments in Outlook.
When an appointment is added in Outlook, my code catches the item added event, generates an equivalent appointment in my application, and adds my appointment ID as a user property in the Outlook appointment then saves it.
The strange problem I'm having is this:
Single click on a day in the month view
Text box shows in the day block, type in the subject, then hit Enter
Double click the new appointment to open it right away
Make some changes such as setting a reminder
Hit save button
At this point, the Outlook will show me a message box saying "The item cannot be saved because it was changed by another user or in another window."
I find this happening quite often if I have my appointment syncing add-in enabled, but never happens if I disable it.
It almost looks like Outlook detects the change of my code saving the user property via Redemption and doesn't like it.
Is this because Redemption is accessing to the MAPI table directly to save the data, while Outlook still caches the appointment COM object when I open it too quickly. So that the appointment I opened is "outdated" by the time I want to save it again?
The Outlook version I'm testing against is Outlook 2016.
This error is returned if the following happens:
Your code (or Outlook) opens the item
Redemption opens the item
Redemption modifies the item
Redemption saves it
Outlook (or your code) modifies and saves the Outlook item
You can either make sure Outlook does not open the item in #1 or (if it is already opened) you can piggyback on the Outlook item and open it using RDOSession.GetRDOObjectfromOutlookObject at step #2.

Getting MAPI_E_COMPUTED when altering PidTagBlockStatus in OutlookSpy

I have .MSG file for which I cannot change PR_BLOCK_STATUS (PidTagBlockStatus). If I change it with OutlookSpy or MFCMapi, I'm getting MAPI_E_COMPUTED.
Outlook also displays an error when saving this message (it happens after the user clicks Display external images, then closes the message, Outlook displays "Save changes?" dialog and the user agrees).
However, PidTagBlockStatus is not a computable property. I can't understand why this happens. I have another .MSG file which is almost the copy of the first one (OutlookSpy and MFCMapi show that both .MSG files have identical fields/values) but for this file I can set PR_BLOCK_STATUS. However, these files have different length and low-level utils like SSView show that larger (and "working") file has more fields. These mysterious fields, however, are not displayed in OutlookSpy or MFCMapi.
The problem is not related to incorrect setting of PidTagMessageDeliveryTime as both messages (working and non-working) have the same PidTagMessageDeliveryTime (and other fields as well). Outlook itself (which knows how to properly set PR_BLOCK_STATUS from PidTagMessageDeliveryTime) cannot complete message save operation.
"Working" file was saved directly from Outlook, "non-working" - with a third-party software. I need to find a way to "fix" the non-working file to make it possible for Outlook to save PR_BLOCK_STATUS without issues.
One more thing. It's possible to simply delete PR_BLOCK_STATUS from .MSG at all. This, however, has an effect that once the user clicked Display external images, Outlook correctly sets PR_BLOCK_STATUS but the message gets blank in Outlook until it's opened next time. So this method does not work for me either. For that, I'm adding PR_BLOCK_STATUS to the message and setting it to zero (letting Outlook calculate the correct value if the user decided to display external pictures). With the default value of zero, Outlook normally shows the message after "Display external images" click, but fails to update the .MSG file on closing the message.
Another method would be calculation of PR_BLOCK_STATUS in "show external images" state in advance (like it's described at html email outlook asks to download images topic), but I can't get this as this must be the user's decision for each particular message, not mine.
Links to .MSG files (good/working and bad/non-working)
https://dl.dropboxusercontent.com/u/18102725/msgs.zip
Using Outlook 2010 64-bit, Windows 7 Ultimate, OutlookSpy 3.7 64-bit.
MSG files let you set any property, including PR_LAST_MODIFICATION_TIME or PR_ENTRYID. How does third party software create the MSG files? Have you looked at the MSG files using the OLE Storage viewers, such as Structured Storage Viewer (http://www.mitec.cz/ssv.html)?

Outlook programmatically avoid Attachment.SaveAsFile() Pop-up on XSL

I have developed a Outlook polling service that does the following:
The service is not a windows service but a rich client.
It is developed in Visual Basic 6.
The "robot" basicly polls outlook for new mails
If a new mail is found the Attachment.SaveAsFile(path) is used to save each attachment.
When I save Excel files (xls) extension. Outlook will launch Excel and Excel will pop-up with the following message with older xsl files (prior excel 2000).
"Do you want to save the changes to 'SaveAttFromBlaBla.xsl'?
"Microsoft Office Excel recalculates formulas when opening files last saved by an earlier version of Excel."
Does anyone know of a way to not have the pop-up occur? And by default select "Yes" to recalculate?
Thanks
Use
Excel.Application.DisplayAlerts = False
Works with Word as well.

Resources