天道酬勤,学无止境

office365

Add alternative language to SharePoint Online Sites PowerShell

Question I am trying to Add Alternative Language to my SharePoint sites using PowerShell: $sitetenant = "https://mytenat-admin.sharepoint.com" $credential = Get-Credential Connect-SPOService -Url $sitetenant -Credential $credential $sites = Get-SPOSite "https://mytenat.sharepoint.com/site" foreach($site in $sites) { $culture = New-Object System.Globalization.CultureInfo(1033) $site.AddSupportedUICulture($culture) $site.Update() } I think this method doesn't exist in SharePoint Online? Answer1 SharePoint Online Management Shell cmdlets are pretty limited in this regard, i would suggest to

2022-05-17 01:15:12    分类:技术分享    powershell   sharepoint   office365   sharepoint-online

How to close office 365 taskpane from plugin javascript code?

Question I am creating an Office 365 plugin for outlook using NodeJS and javascript... I use OfficeJS library to interact with Outlook. My plugin appears in the Outlook taskpane. I want to have button in my plugin HTML. When clicking on that button the taskpane must be closed. Anybody knows how ? thank you ! Answer1 This feature is not available yet, but you will be able to add it into your add-in soon. As of Office.js API level 1.5 you will be able to call the method "closeContainer()". Preview documantation is available at Office.context.ui.closeContainer() EDIT: Office.context.ui

2022-05-16 04:10:28    分类:技术分享    javascript   office365   office-js

Adding users to Exchange admin role groups via API?

Question Is it possible to add users/members to Exchange admin role groups via an API? The equivalent PowerShell cmdlet would be Add-RoleGroupMember and the specific group I wish to add to is View-only Organization Management. Microsoft Graph has an endpoint to add to directory roles, however I can't seem to find a "View-only Organization Management" group listed in my tenant's DirectoryRoles or DirectoryRoleTemplates, so I suspect MS Graph hasn't got access to these Exchange role groups. Poking around the Outlook API has not revealed much in the form of user/member functions either. Extra

2022-05-15 15:21:17    分类:技术分享    outlook   office365   microsoft-graph-api   azure-ad-graph-api   outlook-api

Using Microsoft graph API to access O365 Myapps

Question I'm trying to get all of the apps that are available through my apps with the graph API and I don't see any call that allows me to do that. I've been reading their documentation here: https://msdn.microsoft.com/en-us/office/office365/api/api-catalog however, have been unable to find anything that pertains to my issue. Answer1 The documentation you are referring to is actually for the Office 365 API. The Graph API is available here: http://graph.microsoft.io/en-us/docs . While the two are similar in functionality, it is recommended to use Graph to access O365 data moving forward, as it

2022-05-14 20:55:09    分类:技术分享    office365   microsoft-graph-api

Read parameters from Outlook 365 Add-In manifest

Question Is it possible to get the parameters from the Outlook 365 add-in manifest programmatically (like version number or maybe resources)? I've searched all over the internet, but haven't found any way to do it yet :( Some background: I need some information to be available at run-time from the manifest settings (the customers are expected to install the add-in via manifest and it is to be tailored for each customer with some special data). Thanks in advance! Answer1 The manifest file is only consumed by the client (i.e. Outlook or Word) for the purposes of rendering that add-in (i.e. the

2022-05-14 10:17:05    分类:技术分享    outlook   office365   office365api   office365-apps   office-js

Using CDO/SMTP/TLS in VB6 to send email smtp.office365.com mail server

Question I am searching for days to find out how can I set Office365 SMTP server in my VB6 application. My code is working properly with port 465 and other mail servers. BUT it is not working with port 587 and smtp.office365.com Is there any way I could have TLS via 587 in VB6? Thanks Answer1 There seem to be a number of posts on various forums suggesting that the CDO library doesn't work with port 587, but that's not true. I think the real issue is that SMTP services using port 587 are doing so because they require STARTTLS authentication and the http://schemas.microsoft.com/cdo/configuration

2022-05-14 07:48:10    分类:技术分享    email   vb6   office365   smtpclient   tls1.2

Office 365 - Create *.docx | *.pptx | *.xlsx files

Question I'm working on a web project which uses the OneDrive API for file management purposes. I wanted to create *.docx | *.pptx | *.xlsx files but unfortunately, none of the OneDrive APIs support creating empty/new files. What I tried was to upload an empty/new file from my server to OneDrive. While the upload works fine, the file does not open in Office Online nor in local Office. From this blog, I was able to generate a Word file and upload it. function createNewDoc(name) { var htmlString = "<html><body></body></html>"; var byteNumbers = new Uint8Array(htmlString.length); for (var i = 0

2022-05-13 22:38:04    分类:技术分享    javascript   office365   Onedrive

How to implement admin consent flow for native app?

Question How can I implement admin consent flow for native app using O365 APIs of which permission scopes require admin consent? Answer1 Admin Consent happens "out of band" from your normal authentication flow. To do this, you'll first need and Admin authenticate by going to: https://login.microsoftonline.com/common/adminconsent?<yours params>. You can provide this link within your app. Typically you would first attempt to authenticate them and present them with the Admin Consent option that process fails. Once an Admin grants consent, users will be able to use OAUTH to authenticate via the

2022-05-12 18:33:04    分类:技术分享    office365   microsoft-graph-api

Office 365 and Classic ASP vs. VB.net SMTP Settings

Question There are several questions about classic ASP and Office 365, but none that seem to answer my particular scenario, so here goes. I set up an email account on Office 365 and am trying to do an SMTP test with the following code: Dim ObjSendMail, mailSubject, mailBody Set ObjSendMail = CreateObject("CDO.Message") mailSubject = "Test" mailBody = "Test" ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.office365.com" ObjSendMail

2022-05-12 02:28:04    分类:技术分享    vb.net   asp-classic   office365

How to read calendars which are shared by others in Office 365 REST API

Question https://outlook.office.com/api/v1.0/Users/me/calendars I used this one to get all my calendars. I've got all calendars except calendars which are shared by others with me. I just want to read these calendars. My question is: Does Office 365 Rest Api support my scenario - read calendars shared by others with me? How? Answer1 No it doesn't. Right now the API only supports accessing your data, it doesn't support accessing other folks, even if they've given you access. This is a feature we are looking at adding, but I don't have a timeline to share.

2022-05-12 00:32:03    分类:技术分享    office365   office365api