outlook

Replacing part of Outlook client's window with a custom form

和自甴很熟 提交于 2020-07-09 07:13:17
问题 I am developing a VSTO application for Outlook client. I am trying have my form open in the part of the Outlook client window which is highlighted in red in the following image: I think I can't use the form regions because they replace the view for a single item. So basically what I want to do is opening my custom form (windows or web) in the red area when I click my tool's button on the toolbar. Any ideas how this can be done? 回答1: There are three main ways for displaying your own form there

Replacing part of Outlook client's window with a custom form

纵然是瞬间 提交于 2020-07-09 07:11:01
问题 I am developing a VSTO application for Outlook client. I am trying have my form open in the part of the Outlook client window which is highlighted in red in the following image: I think I can't use the form regions because they replace the view for a single item. So basically what I want to do is opening my custom form (windows or web) in the red area when I click my tool's button on the toolbar. Any ideas how this can be done? 回答1: There are three main ways for displaying your own form there

How to call Microsoft Graph API using VBA?

坚强是说给别人听的谎言 提交于 2020-07-09 03:44:10
问题 Question Is it possible to call Microsoft Graph API using VBA code? If yes, how to handle O365 authorization? I have seen plenty of topics saying to create an application in Microsoft Azure to get a token but I am surprised I must do that for a simple local use. What I tried After discovering Microsoft Graph, I tried this API in Graph Explorer https://graph.microsoft.com/v1.0/planner/tasks I was able to create a task in planner! Consequently, in my mind, it was possible to call this API from

Make Outlook add-ins working with Office 365 shared mailboxes

会有一股神秘感。 提交于 2020-07-06 16:50:57
问题 I am building apps with the new technology of Office add-ins (formerly app for Office). The add-ins activate well when registered globally for the Office 365 tenant or individually by user (mechanical gear > manage add-ins). I would like my add-in to work with Office365's shared mailboxes. The add-ins do not load in Outlook desktop or in OWA when the shared mailbox is open alone. However, I managed to make it work when setting the shared mailbox as a shared folder displayed under my primary

Make Outlook add-ins working with Office 365 shared mailboxes

て烟熏妆下的殇ゞ 提交于 2020-07-06 16:50:34
问题 I am building apps with the new technology of Office add-ins (formerly app for Office). The add-ins activate well when registered globally for the Office 365 tenant or individually by user (mechanical gear > manage add-ins). I would like my add-in to work with Office365's shared mailboxes. The add-ins do not load in Outlook desktop or in OWA when the shared mailbox is open alone. However, I managed to make it work when setting the shared mailbox as a shared folder displayed under my primary

What is the best way to store some data in VSTO addin?

ⅰ亾dé卋堺 提交于 2020-07-05 12:41:48
问题 I have developed one outlook add-in, that has to be On or Off. to do that i have declared one static variable as shown below, ThisAddIn.cs public static bool isAddInOn = false; RibbonButton.cs private void btnRibbon_Click(object sender, RibbonControlEventArgs e) { if (ThisAddIn.isAddInOn ) { ThisAddIn.isAddInOn = false; btnRibbon.Label = "Disabled"; } else { ThisAddIn.isAddInOn = true; btnRibbon.Label = "Enabled"; } } It is working. But the static variable reset again when i close outlook and

Adding users to Exchange admin role groups via API?

孤者浪人 提交于 2020-06-29 15:00:30
问题 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

Outlook 2016 VBA - Run Clean Up Folder via code

拥有回忆 提交于 2020-06-29 10:35:49
问题 I am trying to put code into Outlook VBA where I can loop through all my offline folders and run the "Clean Up Folder & Subfolders" menu command on each folder. I have tried several items and cannot get anything to work. There is very little online and no working code. All suggestions point to Application.CommandBars.ExecuteMso ("ThreadCompressFolderRecursive"), but that object does not exist. Any Ideas? 回答1: Not the Application. Use Inspector or Explorer as required. Sub ExecuteMso_CleanUP()

How to copy specific text from the body of the email?

纵饮孤独 提交于 2020-06-29 07:27:26
问题 Option Explicit Sub GetFromInbox() Dim olApp As Outlook.Application Dim olNs As Outlook.Namespace Dim olFldr As Outlook.MAPIFolder Dim olItms As Outlook.Items Dim olMail As Variant Dim i As Long Set olApp = New Outlook.Application Set olNs = olApp.GetNamespace("MAPI") Set olFldr = olNs.GetDefaultFolder(olFolderInbox).Folders("impMail") Set olItms = olFldr.Items olItms.Sort "Subject" For Each olMail In olItms If InStr(olMail.Subject, "SubjectoftheEmail") > 0 Then ThisWorkbook.Sheets("Fixings")

How to copy specific text from the body of the email?

人走茶凉 提交于 2020-06-29 07:26:59
问题 Option Explicit Sub GetFromInbox() Dim olApp As Outlook.Application Dim olNs As Outlook.Namespace Dim olFldr As Outlook.MAPIFolder Dim olItms As Outlook.Items Dim olMail As Variant Dim i As Long Set olApp = New Outlook.Application Set olNs = olApp.GetNamespace("MAPI") Set olFldr = olNs.GetDefaultFolder(olFolderInbox).Folders("impMail") Set olItms = olFldr.Items olItms.Sort "Subject" For Each olMail In olItms If InStr(olMail.Subject, "SubjectoftheEmail") > 0 Then ThisWorkbook.Sheets("Fixings")