Displaying popup messages/modals with Microsoft Graph - microsoft-graph-api

I am currently developing an Outlook Add-In that receives a notification whenever a change in the user's calendar is recorded. The thing is that, there are some occasions where we would change an event's date from the backend by calling PATCH /events/eventId.
It would be very nice if there was any way to notify the user immediately, other than sending an email. Something like a popup modal with a warning message would work very well.

Currently the feature you requested is not a part of the product. 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.

Related

Sending multilanguage notifications to MS Teams user from a LogicApp

I have a LogicApp that, in some cases, can decide to send a notification to a user via Teams (provided that the target user has installed the associated Teams App).
I was successful in doing so by using the approach presented here.
However, I got stucked when it comes to localize the message.
My first idea was to retrieve somehow the user language settings, but it seems that this info is not available through the Graph API.
Any other idea on how to implement this feature?

Does MS-Graph have a similar feature like Office.context.mailbox.item.notificationMessages?

I need to implement a notification like the one provided by the office.js method Office.context.mailbox.item.notificationMessages using MS-Graph (or other backend outlook API).
Does MS-Graph provide this type of notification or any other notification for emails that show on the outlook client when the user opens an email?
Thanks!
No, it doesn't. You need to develop an Outlook add-in for displaying notification messages.
Also you may consider using MailTips. MailTips are informative messages displayed to users while they're composing a message. While a new message is open and being composed, Exchange analyzes the message (including recipients). If a potential problem is detected, the user is notified with a MailTip prior to sending the message. Using the information in the MailTip, the user can adjust the message to avoid undesirable situations or non-delivery reports (also known as NDRs or bounce messages). Read more about that in the MailTips and Configure custom MailTips for recipients articles in MSDN.
See mailTips resource type for more information.

Questions About UWP Permission Request Dialog UI

I have a UWP app with a WebView that may browse to webpages that request special permissions like the microphone, camera, or geolocation. For instance, I login to web.skype.com, it will request microphone and camera access. I added these capabilities to the appxmanifest so that it Windows prompts for permission. The problem with this is that I have no control over the UI of the popup that is displayed. My users may have special access needs (e.g. using an eye tracker) and I want to ensure they do not get stuck if one of these dialogs appears.
1) Is there any event or notification that Windows is about to show the dialog? I thought WebView.PermissionRequested was supposed to do this, but I am seeing that it is not invoked when I go to web.skype.com for microphone/camera permission, nor for weather.com for geolocation permission. Is there a different event at the app level that I can use for this? That way I can at least warn the user that a non-accessible dialog is about to appear so that they can prepare for it (e.g. ask for help).
Edit: For instance, app.xaml.cs has some virtual methods like OnFileOpenPickerActivated. I need something like OnPermissionRequested.
2) Is it possible to customize this UI in any way? Preferably I could replace the whole thing with my view. Next best would be to change the text to something like "Let web.skype.com access your microphone?" rather than "Let access your microphone?"
My question was answered in the msdn forums, quoted here:
Hi J.Nelson Tdx
Is there any event or notification that Windows is about to show the dialog?
The dialog will appear only when you need to use the related APIs. There is no such event that could will be fired before the permission dialog shows. You could submit a feature request in the User Voice.
Is it possible to customize this UI in any way?
Currently, it is not possible to customize the Warning Alert. This is by design.
Best regards,
Roy

Questions about the notifications API

We have a need to fetch notifications for a particular user. By notifications, I mean the "Alert" items that appear in the D2L minibar (Message alerts, Update alerts, Subscription alerts).
We want to integrate some of these items into our CMS' menu.
I see that D2L offers a Notifications API:
http://docs.valence.desire2learn.com/res/user.html#id1
Question 1: Is the notifications API flexible enough to grab the items described above for a user?
Question 2:
To experiment with the notifications API, I tried using the following API call:
http://docs.valence.desire2learn.com/res/user.html#get--d2l-api-lp-%28D2LVERSION-version%29-notifications-instant-carriers-
And a 403 error was encountered.
The documentation states:
These routes depend upon the back-end service having the Notifications tool active. If the service does not have the Notifications tool active, then all calls to these routes will result in authorization (403) error results.
Where is the option in the backend to toggle this setting? Is this setting available in DOME somewhere?
Question 3: For the Alert items, is there a static link to view these items on D2L?
For example, I am able to access the:
Pager - at
example.desire2learn.com/d2l/lms/pager/messageList.d2l?ou=ORGID
Email - at example.desire2learn.com/d2l/lms/email/frame.d2l?ou=ORGID
But, there doesn't appear to be a way to access the "Update Alerts" and "Subscription Alerts" items from a static link. They only appear via AJAX when you click on these icons in the minibar. If I am overlooking where these links are, please let me know.
The answer will be long-ish, and probably isn't what you want to hear. First off, there is a strong distinction between "alerts" (the items that show up in the minibar) and "notifications". The Notifications API is simply exposing the "Instant Notifications preference" table that you can see when you open your user's Notifications settings page (the page at url: http://yourLMS.edu/d2l/Notifications/Settings).
The types of messages that can be sent as a "notification" are the rows in the Instant Notifications table; the "carriers", or endpoints, for them are the columns of checkboxes. The Notifications API exposes this table, letting you retrieve it's current state, and change the setting for a checkbox at the vertex of a notification messageTypeId and a carrierId.
So, to answer your specific questions:
Question 1. No, the Notifications API does not currently provide any access to the alerts that appear in the minibar control in the LMS' web UI.
Question 2. Your 403 may indicate that your calling user context does not have the permission required to use the Notifications tool: the calling user must have a role that grants them the ability to Receive Instant Notifications -- without that, the API call to retrieve the carriers list results in a 403.
If your org has had the Notifications tool turned off entirely, then it's likely no user will be able to see their Notifications setting page through the Web UI, and to turn it back on may require your organization to call D2L's support desk to have it turned back on: I'm not sure that client organization admins have the ability to select what tools are on and which are off without intervention from the support desk.
Question 3. I do not believe there is a static page for the Update and Subscription alert lists.

Doing Facebook Requests directly without the built-in UI

I wanted to confirm if this is possible. I want to publish "User To User Requests" directly to the open graph action with my own UI (specifically the friend selector).
My friend selector does follow the platform guidelines (ie do not allow users to select all users at once). My question is that can I publish these requests directly without having to use any of the FB UIs including the request dialog preview (we are going to show our own preview).
This is to be built on iOS. The primary reason we want to use our own UI is because our design team feel that the popups hinder UX on mobile and they want to make it seamless. Their reasoning is a design issue that probably up for another discussion all together, but what I want to know is about using the requests api without using the native FB ui.
The answer is simply, YES, yes you can do this and then post the request to each friend using the id's of the friends selected by the User. All you have to do is just retrieve the friend list retrieve selected user ids and POST to them the requests.

Resources