How to pull SharePoint data in Outlook add-in? - sharepoint

I am developing an add-in for Outlook that needs to pull data from SharePoint. Unfortunately I haven’t found any definitive approaches to how the add-in can take a session (Exchange) and make a request to SharePoint without having the user sign on again (to the SharePoint).
It should work in the following configurations:
On-Prem: SharePoint & Exchange 2013 & 2016
Hybrid:  SP Azure & Exchange 2013 & 2016
O365: SP & O365 both in cloud
Any suggestions/pointers would be greatly appreciated.

At the moment there isn't a way to grab a token for the current session.
The most effective way to accomplish what you need is kick off an OAUTH workflow from within the add-in. Once you have that token, you can use it against either Graph or SharePoint APIs.

Thanks Marc
Tom, the functionality is expected to be in limited preview by mid-may so not suitable for prod deployment till late in the year however keep in mind it will only work with
O365: SP & O365 both in cloud because it depends on Azure AD. For Hybrid and on-prem you will need to do as Marc suggested.

Related

Sync Microsoft 365 data to Netsuite

I would like to sync data from Microsoft 365 back to Netsuite. For example, you can create customers by entering information into Microsoft Excel. In my imagination, Netsuite would call API or something similar to access 365 data, and then we can extract data from that.
P/s: I do not know Microsoft Azure much. Recently, I successfully sign in to Netsuite using Azure SSO
Any comment would help a lot. Thanks

regarding Outlook 2013 API.

Would it be possible to obtain, create, update and delete the events on the calendar with REST API for Office 2013 Outlook?
It seems it is possible by integrating On-premises and Azure AD that is written in this link
(https://learn.microsoft.com/ja-jp/azure/active-directory/active-directory-whatis), would you confirm if my understanding is correct.
Or should I use API for Outlook.com to synchronize with Outlook 2013?
Overall, I would like to learn if there is an API for 2013.
And if there is not, how can I synchronize Office 2013 with Outlook.com?
Thank you very much for your help on this.
I’m new to Outlook and please advise if my questions are not clear enough.
It depends on where the mailboxes are located.
If they are in Office 365, then you can use the REST based Microsoft Graph APIs or the Outlook REST APIs.
If the mailboxes are located in an on-premises Exchange server, then you can only use the Exchange Web Services API. Since you mention Outlook 2013, I'm also assuming Exchange 2013. The EWS API documentation is here.
If you use .NET, I recommend to use the EWS Managed API to implement an EWS client.

Can't associate Office 365 with Azure subscription

For my company, I have an Office 365 E3 subscription (not trial).
My office 365 account is also global admin.
Now I would like to use Office 365 API. According to the getting started tutorial I was told to associate Azure with Office 365.
So I when go to Office 365 Admin panel then click to Azure AD. I end up with Azure Sign up screen however the screen is empty. What am I missing?
It may not be a development question, but as there is no O365 forum, an answer can still be provided, which this site is all about.
You need to go on this website https://manage.windowsazure.com/ and register to access your Azure AD. It takes few minutes to proceed.
there's a new getting-started flow that might make this easier in the future, in case others hit this as well on http://dev.office.com/getting-started/office365apis.
The problem appears to be my browser is blocking third party cookies . When I turned that option, it worked.

Authenticating Excel Task Pane app to CRM Online

I would like to write an Excel Task Pane app to interact with CRM Online - to take data from the Excel worksheet, process it and push it into a CRM entity record. My Excel users are on Office 365, as is CRM Online (obviously). We are using ADFS 2.0.
The specific problem I am experiencing is that I do not know how to get authentication to work for the Task Pane app: specifically, to the OData endpoint via JavaScript. Authentication is not my area, so I don't know how to precisely phrase this next requirement, but as we are using Office 365/CRM Online/ADFS then I need to use the logged-in user's Windows AD credentials to authenticate the request.
As far as I can tell, it is not possible to authenticate the Task Pane app directly with CRM Online, and I would like to know if that is known to be true, and if not what method(s) I can use.
I do know that there is a hack for indirect authentication published by a couple of people (http://survivingcrm.com/2013/12/connecting-crm-online-odata-feed-excel-2013-power-query/ or http://www.crmconsult.co.uk/connecting-to-crm-20112013-with-odata-in-excel-2013/) which authenticates the user via the CRM plug-in and then allows other OData connections to succeed - but it doesn't work for me, and I'm averse to rolling out functionality to users which relies on back-door methods.
In the end, I ended used using SOAP in VBA instead of oData in the Task Pane, which meant I was able to use Jason Lattimer's hard work from http://jlattimer.blogspot.co.uk/2015/02/soap-only-authentication-using-vba.html - I don't think there is any way I would have figured out the Authentication piece without that post, so many thanks to him.

Retrieve Office 365 directory information from SharePoint online

I was wondering if is it possible to retrieve Office 365 directory information (i.e. security group membership) from SharePoint online programmatically (for example through a workflow custom action)?
By the way, I am not looking for retrieving Sharepoint group membership information.
I know the custom development is pretty limited with SharePoint online since the code has to run as a sandbox solution. Is there any web service or any another solution available?
I have been looking for information about this matter but I could not find anything so I guess there is no way to do this.
In our case there is an active directory synchronized with office 365. So we will use a powershell script to read data from AD and update a sharepoint list every day.
Then we will be able to use this data from custom code (like a workflow custom action).

Resources