Reputation: 25
I want to run a script when I receive a new email in Outlook for Office365. Is there any solution in [office-js]?
Instead of checking to receive new emails, I can read new emails every minute and run the script. In Google Apps Script (GAS), there is the Trigger that you can run a script every minute. Is there a similar feature in [office-js]?
Upvotes: 0
Views: 380
Reputation: 49395
Outlook web add-ins currently work only in the context of an item. So, OfficeJS
doesn't provide built-in mechanisms for handling incoming items like VSTO does using the NewMailEx
event. You may consider using Graph API, see Use the Microsoft Graph API to get change notifications for more information.
Upvotes: 0