Outlook add-in event-based with OfficeRuntime.auth - outlook

I'm new to this topic, but I've taken some time to understand some things.
I would like to know how I get a token from an event, I read that OfficeRuntime.auth.getAccessToken() can be used but it doesn't work for me.
Thanks for your help.
I hope get the token when the event onMessageComposeHandler is called.
I am on outlook windows.

Related

Sending custom text notifications to users on Microsoft Teams

I have spent quite a long time trying to figure out if I can send custom activity notifications using the graph API and I have come across the 'POST https://graph.microsoft.com/v1.0/users/{userId}/teamwork/sendActivityNotification' endpoint which seems to allow me to do what I want, however I get this error whenever I try it.
Any idea on what it could be and if what I want to do is at all possible?
Screenshot of the Error
Thanks in advance.

creating outlook add-in for for outlook 2018

I am working on a project where I would create an extension in outlook that would allow you to see how many emails you received and sent for a certain email (#edu.com). I also want to be able to see things like time received, if the person responded, and the average emails responded to for that particular email group. Any ideas on how I could accomplish this. From what I have seen so far, it looks like I should use the Outlook Graph API for. Any ideas or how to get started would be really nice!
Search for code examples, select the closest one and clone it.
After that try to change its functionality.

Reconfirm subscribers in Mailchimp

In preparation to GDPR i have to send a re-confirm message to all subscribers, My client has sent me an example seemingly using Mailchimp where the subscribers can reconfirm that they do wish to continue a subscription by simply pressing a button "I wish to continue to subscribe". I have done lots of research and going through the settings at Mailchimp but cannot find any information on how to do this. Any help would be appreciated.
I did however find this Question on Stackoverflow, and have been in contact with the developer who found another way to consolidate his lists.
The link on the button used in both exemples are coded like this:
https://xxxxxxx12.list-manage.com/track/click?u=xxxxx&id=xxxxx&e=xxxxx&data=xxxxx|0|xxxxx&sdata=xxxxx=&reserved=0.
Any help would be appreciated.
What you're seeing is a typical intermediate tracking url that mailchimp inserts instead of the underlying link and is unique to each email, link and user. Hence you can 'abuse' this to use link tracking as reconfirmation as I described in this answer.

ServiceError with basic Direct Line interaction

I've got a basic bot that I am trying to interact with via Direct Line. Following this example, these are what my requests look like:
Start Conversation
Send Activity
The error it responds with is difficult to investigate with such minimal information. The bot itself is working perfectly on other channels.
Has anyone seen this before?
Apologies for answering my own question. It turns out, the Send Activity request was sent as application/text instead of application/json.
I wish the error was more clear on why it was rejecting it but that fixed my issue.

How to automatically send certain emaIls when opening outlook?

Any advise anyone on how to automatically send email when opening outlook?
This might help, altough the interface is terrible.
I'll keep looking for more!

Resources