Is it possible to download attachments in outlook add-ins? I mean trigger 'save as' button by javascript. now I can get attachments by using item.attachments and then get base64 with
item.getAttachmentContentAsync
by this way i can download manually. But is it possible to make something like 'save as' calling?
I need something like item.attachments[0].saveAs('directory')
The Office JavaScript API (OfficeJS) doesn't provide anything for triggering built-in commands or saving attachments as a user to the disk. See Get attachments of an Outlook item from the server for more information.
You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team go through the planning process.
Related
I'm using PowerPoint.createPresentation to open a new presentation from my officejs addin.
For the PowerPoint.createPresentation i pass the base64 value of another presentation, where i can use Aspose to change the data.
The newly opened presentations are named Presentation1,2,..,n.
I can change somehow the default name of the new presentation?
Thanks
OfficeJS doesn't provide any method for saving the file/presentation. See Office JS Save and Close methods for Word, Excel and PowerPoint for more information.
Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: Type: product feature request at https://aka.ms/M365dev-suggestions .
I'm creating an add-in that detects fraud in emails with in the body using AI. So I need run every time the user open an email. I didn't find anything on events. The Context add-in seems to not be usable in this scenario because of the dependency on regular expressions. I wanna know if someone knows another approach to this use case.
Currently the feature of event based activation of add-ins in read mode, is not a part of the product. We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process. For more details on event based activation of add-ins you can read here.
There is no way to activate add-ins automatically for a selection without contextual conditions triggered (regex and etc.).
Is there a way, to manipulate what the user is seeing in the Outlook read window?
I have some corrupt EML files, that have to be shown in Outlook after downloading them. So what I need is some extension point to run some js code before the user sees the content.
I already have an addin deployed and I found this topic: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/autolaunch
Which looks kind of promising, except there is no event that is triggered when the email viewer is loaded. Does anyone know a way to intercept the viewer screen?
OfficeJS doesn't provide anything for that nowadays.
I've been trying to activate my add-in when the user open his email so I can analyze it. I found one example in on add-in from another company (Retruster). The issue I didn't found way to reproduce the action. Someone knows how to reproduce this event? Because I just found when sending a message.
The labels shown on the YouTube video are categories set on emails. They can be set on the Exchange server side when your message arrives without any add-in involved. Remember, add-in activation rules are described in the manifest file - it can be regex filters, known entities etc. Read more about them in the Activation rules for contextual Outlook add-ins article.
The add-in starts working when the user clicks on the ribbon button.
I've looked at the "outlook add in command demo" example that shows how to access properties of email messages and change them via REST.
However, I cannot seem to find how I would go about copying a message from (e.g. the Inbox) to another folder in the mailbox.
The example uses REST, which does not seem to be exposing a method or call to copy a message to another folder. Would I need to use Graph to copy a message, and if yes, how is this done from within an Outlook Add-in?
Also, the documentation says REST is deprecated for Outlook add-ins and Graph should be used instead. Is there an Outlook Add-in sample that uses Graph?
The example also shows how the add-in can work on iOS, but not on Android. Has this support in the meantime been added? Is there any newer example that shows how an Outlook add-in can work on all platforms including Android?
You should now use Graph in place of Outlook REST which is now deprecated. To call Graph via outlook add in, check this documentation. Graph call to copy a message from 1 folder to another is POST /me/messages/{id}/move, find more info here.
The Outlook Add in does have support for Android, please have a look here