outlook

Can Microsoft Graph App Only Permissions be restricted?

半腔热情 提交于 2020-01-13 16:22:08
问题 I am developing an app to manage room bookings via Microsoft Graph. In the end, the app needs to read and cancel meetings that are booked into a certain room resource account. Unfortunately, there is only the permission Calendars.ReadWrite which gives the app permissions to read and write every users calendar in the tenant, including private appointments. I have not found any possibility to restrict the permissions or specify them more granular. Does anyone know how to deal with this? (Or do

Outlook VBA Macro to move mail from subfolder to subfolder

一曲冷凌霜 提交于 2020-01-13 14:51:08
问题 I am currently encountering a slight issue with running a VBA script. Sub MovePathErrors(Item As Outlook.MailItem) If Item.Attachments.Count > 0 Then Dim attCount As Long Dim strFile As String Dim sFileType As String attCount = Item.Attachments.Count For i = attCount To 1 Step -1 strFile = Item.Attachments.Item(i).FileName sFileType = LCase$(Right$(strFile, 4)) Select Case sFileType Case ".ber" ' do something if the file types are found ' this code moves the message Item.Move (Session

Create Emails from Excel Loop

人盡茶涼 提交于 2020-01-13 12:52:51
问题 I have this sample sheet: My code currently goes through and creates emails based on the name in column H. So Approver1 gets one email for all his people. I have gotten it to de-dupe any repeats of their employee names. Example: Approver 1 gets an email that says 'please approve time for all of your employees below:' and then there is a list of names...Sample1, Sample2, and Sample3. The sheet will often have dupe employees for each approver, as shown in my sheet above. The code works well for

How it is correctly to implement IDTExtensibility2 interface for Office COM Add-In?

与世无争的帅哥 提交于 2020-01-13 12:10:14
问题 I am implementing COM Add-In for Outlook. I use IDTExtensibility2. I am not sure whether this is the best way of doing COM Add-Ins but I cannot change that. This interface defines five methods: OnConnection, OnStartupComplete, OnAddInsUpdate, OnBeginShutdown, OnDisconnection. I need to perform the following operations: Load configuration data from file Load registry data Start new session Create *.pst file Subscribe to Explorer events Connect to Internet Server to get some data Create menu

Is there a difference between the Outlook .MSG and .OFT file formats?

有些话、适合烂在心里 提交于 2020-01-13 11:39:25
问题 This question is somewhat of a long shot, but I've spent hours on it to no avail. I have some code that generates an email file on a webserver, and allows the user to download that email and open it in Outlook. From here, they can make various manual changes to the email before they send it to a bunch of people. Right now, I generate a .OFT file, which is basically an email template. What I want to do is generate a .MSG file, which is an actual email. From a binary point of view, it seems

How do I create a custom Outlook Item?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-13 11:14:12
问题 I understand that Outlook has set items, i.e. Mail, Task, Calendar, Notes, etcetera. How can you create a custom Item that Outlook will recognize as the others? I know that when you add the Business Contact Manager it creates Items like "Opportunities" Can you override an Item, or inherit an Item and alter/add properties and methods? examples: olAppointmentItem 1 Represents an AppointmentItem olContactItem 2 Represents a ContactItem olDistributionListItem 7 Represents an DistListItem

Send email as calendar invite/appointment in SendGrid C#

孤街浪徒 提交于 2020-01-13 10:45:07
问题 I would like to send an email with calendar invite/appointment to both Outlook as well as non-Outlook client like gmail/yahoo. My application is hosted on Azure and I am using SendGrid for sending emails. Emails part is working just fine but I haven't found any fully working solution that works with both Outlook and other email clients. Here's the code snippet I am using to send email: var client = new SendGridClient(this.apiKey); var msg = MailHelper.CreateSingleEmailToMultipleRecipients(

VBA Outlook Appointment

馋奶兔 提交于 2020-01-13 07:11:27
问题 I am trying to copy data from Excel to Outlook appointment Item. I have already created a template with a table and some images and would like the data to be copied from the excel file in the already formatted table in the body of the template. However, unlike e-mail, outlook appointment does not support ".htmlbody" property hence, its getting difficult to paste the data in the template. So far, I am trying to do this: Dim olAppItem as Outlook.AppointmentItem Set olAppItem = olApp

Select the content of Word document and paste it into the body of Outlook with VBA

爷,独闯天下 提交于 2020-01-13 06:38:08
问题 I have a Word template created and I need to do the following: Create a new document based on that template Modify some data of the new template and copy all its contents Open Outlook and paste the template into the body of the message Send the message to the corresponding recipient Note: The base template will be used for several recipients according to their data. Basically, it is almost the same function that the Word correspondence tab fulfills, only customized. In addition, the VBA code

412 (Precondition Failed) when add attachments at same time

让人想犯罪 __ 提交于 2020-01-13 02:28:12
问题 I am using Microsoft Graph. I try to add two attachments by POST /me/messages/{messageId}/attachment { "@odata.type": "#microsoft.graph.fileAttachment", "name": "1.txt", "contentBytes": "SGVsbG8gd29ybGQh" } POST /me/messages/{messageId}/attachment { "@odata.type": "#microsoft.graph.fileAttachment", "name": "2.txt", "contentBytes": "SGVsbG8gd29ybGQhIQ==" } It gave me 412 (Precondition Failed) error when I add these two attachments at same time. { "code": "ErrorIrresolvableConflict", "message":