How to access API with AAD token from Contextual Outlook add-ins - outlook-addin

By referring to all the outlook web add-in documentation online, I cannot find a way to access an API with bearer token from Contextual Outlook add-ins.
One of the obvious road blockers is the behavior of contextual card which disappeared if your mouse clicks on other places/windows. And I have to clicks on the pop-up login window in order to login...
I was wondering if there's anyone knows any solution.
Thanks.
Here is the current flow:
My RegEx rule matches activate contextual detection in email content (read mode).
I click the highlight text to open the contextual card and see my add-in content powered by a web server.
My add-in code asks user to login to get user token, so that we can use the token to authenticate to another API. (In short, our backend API doesn't want to be public and non-Auth). Outlook pop-up a separate window for login.
I move my mouse to clicks on the button in the login window. At the same time, contextual card disappeared.
Maybe the code successfully get the user token, but the add-in is terminated before got the token.

Related

Automate Login to Microsoft PowerBi

I created a Login form, and after the button is clicked I need that this data automatically login into Microsoft website using POST method.
Any Solution?

Form Submissions via API

I have a form embedded on my website via Hubspot API. I want to receive an email notification if someone submits the form. I tried the solution given on the HubSpot community but it does seem to work.
Here it is https://developers.hubspot.com/docs/methods/forms/submit_form
https://developers.hubspot.com/docs/methods/forms/submit_form_v3
Can anybody provide a solution? TIA.
Under Marketing -> Lead Capture -> Forms, find and open the relevant form. Click the Options tab at the top and in the middle of the page locate Send submission email notifications. Select your user from the drop down list or manually enter an email.

Can we open task pane from the dialog window in Office js?

Is there a way to open task pane from the dialog window in Outlook?
We perform the login operation in the Dialog window, however, by the nature of the add-in the Login is directly prompted from the ribbon. Hence, the user does not realise that there is a task pane where more customizations are possible. We want to open the taskpane post login (without requiring the user to click the icon on ribbon)
Currently the 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.

Outlook Web Add-in: Can we add an entry into context menu?

I didn't find this functionality in Outlook web add-in documentation. But it's worth to ask...
We want to add a new entry into Outlook right click menu (context menu), so that it can open a hyperlink (url is different based on what you highlighted) to integrate with our web portal.
I understand contextual outlook add-in is the closer solution.
But it's not the user experience we want.
Instead of highlight everything based on RegEx, we would like to support users to intentionally trigger the add-in by highlighted keyword and right click on the context menu.
Wondering if it's possible today for the latest Outlook desktop app.
User scenario:
User highlights a keyword in email reading/writing mode
User right click the mouse
The context menu shows up with having our custom menu item
When user clicks on our custom menu item, it opens a browser with an url based on what user highlighted.
Outlook context menu cannot be extended at the moment. Available extension points are:
MessageReadCommandSurface
MessageComposeCommandSurface
AppointmentOrganizerCommandSurface
AppointmentAttendeeCommandSurface
Module (Can only be used in the DesktopFormFactor.)
MobileMessageReadCommandSurface
Events
DetectedEntity
You probably should add your business case into Office development user voice request: Outlook Web Add-in: Add Context Menu Mail Item Extension Point or at least upvote it.

Is it possible to add user tracking method in EDM (Electronic direct mailer) Email click?

Here is the scenario:
We have designed an email template in which there are two option buttons: "Yes" & "No".
We send this email template to a group of user email lists.
After that, can we track the event where a recipient clicks on either the Yes button or No button.
which method can be used to track down how many of the recipients had clicked the Yes button or the No button?
how difficult is it to track the selected option Yes/No made by each single user?
which tracker is preferred: database tracker, google analytics tracker, mailchimp or other 3rd party web services?
With Google Analytics, you can do manual campaign tagging where you assign specific query parameters to each button. The query parameters will track back to your Google Analytics data, and can tell you which buttons were clicked. This is an easy method as all you need to do is build specific URLs for each button, and then embed those URLs into the email template for each button.
Here is the URL Builder site: https://support.google.com/analytics/answer/1033867?hl=en