office365

Get all root sites listed in share point Admin center using graph api beta

三世轮回 提交于 2019-12-11 01:31:56
问题 I need all root sites listed in share point Admin center shown in image For that i am using Graph api like follows, var settings = { "async": true, "crossDomain": true, "url": "https://graph.microsoft.com/beta/sharepoint/sites", "method": "GET", "headers": { "authorization": "Bearer token", "cache-control": "no-cache", "postman-token": "3116b007-e574-5ad4-aedd-3b35fbf76b61" } } $.ajax(settings).done(function (response) { console.log(response); }); But it gives output as follows, { "@odata

Must Office.initialize always be set?

拈花ヽ惹草 提交于 2019-12-11 01:25:40
问题 I have an Office.js Task Pane add-in that doesn't do anything with the Office API until the user performs a specific action on the task pane UI. The UI is an angular.js SPA. So, naturally, there's nothing I need to do on Office.initilize. But, I kept running in to the below error until I gave Office.initilize an empty function. SCRIPT5022: Unhandled exception at line 11, column 10360 in https://localhost:44300/Scripts/Office/1/office.js 0x800a139e - JavaScript runtime error: Office.js has not

Using Office 365 API in Xamarin.Android

坚强是说给别人听的谎言 提交于 2019-12-11 00:49:12
问题 I am creating a sample for a talk: using Office 365 in Xamarin.Android, but I am having some errors, don´t know why :/ I got this: "System.InvalidOperationException: An error occurred while processing this request. ---> Microsoft.OData.Client.DataServiceTransportException: Error: NameResolutionFailure ---> System.Net.WebException: Error: NameResolutionFailure\n at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 \n at Microsoft.OData.Client

Getting particular user details from AzureAD using Powershell cmdlets in C#

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 00:46:14
问题 I am able to import AzureAD module and able to connect AzureAD using Connect-AzureAD PowerShell cmdlet in C# . When I want to list the users I just simply use the Get-AzureADUser got all users. But When I want to list the particular user using Get-AzureADUser -SearchString 'user@domain.com' , I am not able to list. Tried one: Runspace runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); Pipeline pipeline = runspace.CreatePipeline(); pipeline.Commands.AddScript("Import-Module AzureAD"

insert image programmatically office 365 excel Add-in

允我心安 提交于 2019-12-11 00:29:32
问题 We are developing Office 365 Excel Add-In using office js version 1.1, we are creating table and inserting data using tablerows , now we need to display images in cells in one of column. can anyone help how we can achieve that using office js? 回答1: There is a somewhat limited way of doing it using the getSelectedDataAsync API and the ImageCoercuon type. I know that this works on the Desktop but not sure offhand about Office Online, Mac, or iOS. See https://dev.office.com/reference/add-ins

“ErrorAccessDenied” when getting user photos with Microsoft Graph API v1.0

核能气质少年 提交于 2019-12-11 00:08:48
问题 I'm getting an " ErrorAccessDenied " when attempting to get user photos with the Microsoft Graph API v1.0. I have approx 200 users, and I'm getting this error for around 1 in 10 user photos (the others work fine). I can get user profile info fine with: https://graph.microsoft.com/v1.0/tenantID.onmicrosoft.com/users/someUserId/ But for some users, attempting to get a photo: https://graph.microsoft.com/v1.0/tenantID.onmicrosoft.com/users/someUserId/photo https://graph.microsoft.com/v1.0

Authenticating (claims) to Sharepoint/Office356 through PHP and SOAP

谁说我不能喝 提交于 2019-12-10 23:07:05
问题 I am trying to make SOAP requests to Sharepoint lists (via 'http://url.co.uk/_vti_bin/Lists.asmx?WSDL) using PHP5's standard SOAP lib that require authentication. I had it working fine using NTLM authentication (which was a pain but worked in the end) but now the remit of the project is to authenticate through CLAIMS so that it will work for either a Sharepoint install or an office365 instance. I realised from the outset that a standard SOAP authentication would not work...but I tried it

How to name and reference an Excel range using office.js

只愿长相守 提交于 2019-12-10 20:12:20
问题 I'm developing an Excel add-in using office.js library, and need to create some named ranges to track and access later. However according to the API documentation: NamedItemCollection: https://github.com/OfficeDev/office-js-docs/blob/master/reference/excel/nameditemcollection.md NamedItem: https://github.com/OfficeDev/office-js-docs/blob/master/reference/excel/nameditem.md There is no method for creating named items. Is there a way to name and reference an Excel range using office.js? Thanks.

Get OneDrive Item Id for Current Word doc

我们两清 提交于 2019-12-10 18:49:25
问题 I'm looking into building an add-in for Microsoft Word that would involve creating a copy of the current document. I've found where I can copy an item through the OneDrive API. However, this requires the item-id for the document to be copied. I can't seem to find how to get the item-id for the current Word document through the Office JavaScript API. I've looked on the Office.context.document object, as well as the Office.context.document.getFileAsync() and Office.context.document

Can I sync calendar events with the Microsoft Graph API?

谁都会走 提交于 2019-12-10 18:19:41
问题 I'm working with the Microsoft Graph api to try and sync calendar events from Outlook. I was looking at this article concerning the Outlook api, which suggested I add the header odata.track-changes to my request and I would receive a deltaToken , which I could use on a later request to fetch only those events which had been updated or created since the last sync. I have been successful fetching events, but I'm not getting a deltaToken back :/ Is this only supported in the Outlook api? Graph's