How to register a MAPI service provider for the user without admin privileges? Outlook deletes the inf file from AppData. (SetDispositionInformationFile C:\Users\test\AppData\Local\Microsoft\Outlook\mapisvc.inf SUCCESS Delete: True)
Register a MAPI message service for a non-priviliged user
Creation of Recurring events in Microsoft Calendar through REST API's
Delete Icon Move
OUTLOOK.EXE still running in Task Manager
We have a TypeLibrary (Visual Studio 2013 C#). It performs various tasks like creating email and appointments in Outlook.
TLIBIMP.exe (an Embarcadero product) was used on the assembly to create the header files needed for use in the Embarcadero C++ compiler.
THE ISSUE
I noticed that after Invoking the TypeLibrary from our Desktop Application (The one created using the Embarcadero C++ compiler) Outlook.exe remained on the Task List.
I've double and triple checked the C# code and I made sure that I did the following
1. The Application Object is using the Dispose Pattern to properly release the application object once it goes out of scope.
2. I'm releasing the RCWs in the reverse order in which they were created.
Outlook is not visible on the screen, only the process is visible on the task list.
Any ideas why Outlook.exe would remain on the task list after Marshal.ReleaseComObject is run on the RCW and then a null is assigned to it (just to be sure I've released the unmanaged resource)?
Germán Hayles
Select Multiple items and save to local dir Office 365 MAC
Hi, I'm new to office web add-in development. I have in the past worked with vsto add-ins but now I'm forced to work with web ones because I need the add-in to be used on mac. Maybe I'm misunderstanding how it works but I have been looking for answers on
both the add-in development documentation and online to no avail.
1) How can my add-in interact with multiple selected emails?
2) How can I save a file to the users local filesystem?
If add-ins aren't the way to go, can someone point me to the right type of solution?
Thanks
How to easy convert OST to PST files?
getting the error "OrganizationFromTenantGuidNotFound" while calling MS Graph API
I have successfully retrieved the access token required to call graph API but getting below error while calling the Graph API:
{
"error": {
"code": "OrganizationFromTenantGuidNotFound",
"message": "The tenant for tenant guid 'a349cb8f-abda-4583-bdde-04c430adfd2f' does not exist.",
"innerError": {
"request-id": "91846ace-3cb4-4965-a28b-abdad39c9390",
"date": "2019-03-26T11:15:27"
}
}
}
Kindly let me know how to overcome this.
Installing custom Outlook add-in problem
Hello,
we have the following issue:
- We developed an Outlook add-in that can be installed for testing by uploading a manifest file into our client's Outlook.
- We tested the add-in installation on Outlook web application and it worked as expected.
- According to the documentation we can install it on a desktop Outlook instance. But we are not able to upload it into Outlook 2013 on our local machine - we miss the Custom add-ins tab item.
- We want to test this add-in in the client's system but we were not able to install it in their Outlook 2016 desktop instance - again we miss the Custom add-ins tab item and on their Exchange 2016 on premise server the menu item Manage add-ins did not finish loading.
Please, we need help to install this plugin on our client's system, as it was described in the documentation.
Thank you!
ost to pst by .net
hello,
i am new .net devloper and i am woking on ost to pst converter so plz help me on this topic with source code.
IConverterSession::MIMEToMAPI does not translate properly the Calendar item(IPM.Schedule.Meeting.Request)
Hi,
Does IConverterSession::MIMEToMAPI handles the conversion of calendar(EML to MSG)?
I am using IConverterSession::MIMEToMAPI and it is not translated properly.
I tried converting with MFCMapi but MFCMapi also does not convert properly the calendar item.
Am attaching the MSG file converted by IConverterSession::MIMEToMAPI:
thopulou Associate Software Engineer
VSTO Add-In for Mobile
Hello.
We recently created a VSTO Add-In for Outlook 2016 using the Outlook 2016 Office Project Type in Visual Studio 2017 and was recently asked if it's possible to port our Outlook Add-In to mobile devices (IOS/Android).
We've done some research on whether this is possible, however not sure if this can be done, at least easily from reading this article.
Any help or guidance would be appreciated.
Adding Cutom Icons/Flags For Emails in Outlook 2016
Hi Team,
I would like to know, any option to a custom icon or a flag for an email as shown below using Outlook API;
Thanks,
Anoop.KV
Check if OST in Outlook is synchronized by script
Hi Team,
I has made a script that delete the ost file at logoff, if it grows up to 50GB.
Belive me, there isn't any problem with sync... Is a huge account shared by 50 persons with a LOT of traffic.
I have a lot of Outlooks 2010 clients with 2 Exchange accounts ... there are some circunstances in wich the users move mails / folders between the both accounts, close Outlook, force to Windows logoff and the emails get lost .. there aren't in any account.
I have looked on Outlook Object Model but couldn't find a way to check if all OSTs are synchronized with the Exchange...
So, anyone knows how to check if an OST file is full synchronized with the Exchange? Powershell script prefered.
Checking this GUI's item on the script could work:
On Powershell forum they told me that can use the Outlook Object Model's SyncObject to monitor the SyncStart and SyncEnd events... but I don't figure it out how to do it (I am a System guy, not developer)
Need to run the delete OST script if all Exchange account are synched, if not, exit.
Many thanks guys!
Outlook 2013 VSTO .... Custom button in reading pane?
Hi,
In Outlook 2013's reading pane, we got the new quick ... REPLY, REPLY ALL and FORWARD. Is it possible to to add a custom button next to "FORWARD" (indicated by the red arrow here)...
?
Thanks!
Mojo
Auto send an email/reply
I monitor a mailbox at work. We get lots of responses and most of them can be answered with prepared statements. We have sub folders that we drag/drop the message into and at the end of the day my co-worker runs a rule and sends all the messages. But they tend to pile up in there and sometimes the rule is forgotten. Is there a way to automate this even further?
move message to folder a. rule runs immediately to respond with canned statement assigned to that folder.
I feel like there should be a way to do this instead of waiting.
Attachment file name takes on metadata description when message format is HTML but not for RTF message format
We send documents from our in-house Eclipse system that uses VB script to open a new email with message format of Rich text. When attaching files we add some metadata called a description which is the name we want the attachment to display in the email but instead it displays the actual file name. If we use the HTML message format, the attached file will take on the name set in the description field. We don't want to use the HTML message format because it does not allow the attachments to be positioned instream and context placed around it. How can we code so the name of the attached file in the Outlook RTF message format uses the metadata description field for the name instead of the actual file name? HTML formatted messages do this by default - they use the value in the Description field.
So to clarify - We are sending a document from Eclipse using Outlook as the email client. The document has some metadata on it called a description which contains the value "test"
The document being attached has the file name C:\Users\XXXXXX\AppData\Roaming\Documents\Cache\000002001\135000003311.PDF.
We default the outlook message to format RTF and the name of the attachment displays as the file name "135000003311.PDF"
If we choose the HTML message format – the attached file name automatically changes to the name in the description field "test"
The section dealing with the attachments starts here: If Not anAttachmentList Is Nothing Then
Public Sub launchMailItem(ByVal aToList As StringCollection _ , ByVal anAttachmentList As CodeFieldList _ , ByVal anIsFax As Boolean _ , ByVal aSubjectLineText As String _ , ByVal aSignaturePath As String _ , ByVal anEmailReporting As EmailReporting) coverLetterFileName = String.Empty emailReporter = anEmailReporting messageSent = False Try emailItem = CType(outlookApplication.CreateItem(Outlook.OlItemType.olMailItem), _ Outlook.MailItem) AddHandler emailItem.Send _ , AddressOf handleEmailItemSend AddHandler emailItem.Close _ , AddressOf handleEmailItemClose emailItem.SentOnBehalfOfName = _ SessionManager.commonMailBoxName emailItem.Subject = aSubjectLineText 'default the email to Rich Text format emailItem.BodyFormat = Outlook.OlBodyFormat.olFormatRichText If Not anAttachmentList Is Nothing Then Dim myDisplayName As String For Each myAttachment As CodeField In anAttachmentList myDisplayName = CodeField.getDescriptionString(myAttachment) If myDisplayName = String.Empty AndAlso _ System.IO.File.Exists(CodeField.getCodeString(myAttachment)) Then myDisplayName = _ System.IO.Path.GetFileName(CodeField.getCodeString(myAttachment)) End If emailItem.Attachments.Add(CodeField.getCodeString(myAttachment) _ , _ , 1 _ , myDisplayName) Next End If Me.checkOutlook(emailItem) If outlookApplication.Session.Offline OrElse Not Me.isOutlookOpen Then Throw New EclipseWarningException _ ("Outlook is currently offline; Eclipse cannot successfully send mail when outlook is offline. Please make sure Outlook is open and connected.", _ Nothing) End If If Not Me.isDefaultSignatureExists Then Throw New EclipseWarningException _ ("A default signature was not found. Please set a default signature in Outlook and try again.", _ Nothing) End If If Not String.IsNullOrEmpty(aSignaturePath) Then ''if they have a default signature set we will delete if first DeleteSignature(emailItem) ' ''add the signature to the email InsertSignature(emailItem, aSignaturePath) End If If aToList IsNot Nothing Then Dim myToString As New StringBuilder For Each mystring As String In aToList myToString.Append(";" & mystring) Next If myToString.Length > 0 Then 'remove the first ";" myToString.Remove(0, 1) End If emailItem.To = myToString.ToString End If postitionEmailCursor(emailItem) emailItem.Display() 'We will capture whenever an email is saved. It is added after the emailItem.Display statement because 'the initial opening of the email throws a write event which we will skip. AddHandler emailItem.Write _ , AddressOf handleEmailItemSave Catch ew As EclipseWarningException Throw ew Catch ex As Exception Throw New OutlookLaunchException(ex) End Try End Sub
Macro recording feature for Outlook not available
Hi there!
Is there any possiblity that we can record macros in Outlook 2016, such as in the case of Excel 2016? I don't see any record button on it. If indeed none, can i ask assistance from you on developing vba macros? for easier explanation, I can make some sort of screen recordings of what i intend to do and send it to you...
Basically, i'll do a series (repeatitive tasks) of importing csv (excel) files and load them to their corresponding Calendar Folders.
Another macro that i also need is to, after using or updating these Calendars manually, i need a macro to repeatively export them back to excel (csv) files.
There is around 25 Calendar folders involved. I can send a sample calendar..
Please let me hear from you. This everyday tasks is very tedious for me and unfortunately i have no background in vba programming. only macro recording is my capability..
Thanks,
Hiding meeting response buttons in the reading pane
I have developed custom ribbon buttons to respond to the meeting requests. I made disabled the default Group Respond menu. But the buttons are being displayed in the reading pane. How can I hide those buttons? I tried to get the active explorer and use the ShowPane method. But this method can be accessed like FolderList, Preview, NavigationPane.
VBA macro to set reminder for recurring appointments
Hi,
I have this macro to set the reminder to 5m for a selected item in the calendar view. It works great for non-recurring appointments, but it doesn't work at all for recurring appointments. Any suggestions on how to make it work for either case?
Thanks,
TWS
Sub SetReminder() Dim objOutlook As Outlook.Application Dim objInspector As Outlook.Inspector Dim strDateTime As String ' Instantiate an Outlook Application object. Set objOutlook = CreateObject("Outlook.Application") ' The ActiveInspector is the currently open item. Set objExplorer = objOutlook.ActiveExplorer ' Check and see if anything is open. If Not objExplorer Is Nothing Then ' Get the current item. Dim arySelection As Object Set arySelection = objExplorer.Selection For x = 1 To arySelection.Count ' strCats = arySelection.Item(x).Categories ' If Not strCats = "" Then ' strCats = strCats & "," ' End If ' strCats = strCats & "Business" ' arySelection.Item(x).Categories = strCats arySelection.Item(x).ReminderSet = True arySelection.Item(x).ReminderMinutesBeforeStart = 5 arySelection.Item(x).Save Next x Else ' Show error message with only the OK button. MsgBox "No explorer is open", vbOKOnly End If ' Set all objects equal to Nothing to destroy them and ' release the memory and resources they take. Set objOutlook = Nothing Set objInspector = Nothing Set strDateTime = Nothing Set objExplorer = Nothing End Sub
Questionnaire with Outlook
Hallo Everyone,
We need to send out a questionnaire/survey to various branches to gather information and would like to do this via Outlook/Email with us then loading the answers (using VBA) into an MS-Access database.
What I need to know is whether we can "embed" form-fields (maybe with HTML?) into an email (with some being pre-filled) and then send off a batch of emails to be filled out by recipients and then sent back to us for processing (automatically with VBA).
I have fished around in the develop part of Outlook and see that there are methods to create forms but these seem to be more for local (Outlook) use rather than a basis for sending out in Emails.
Any tips, help or links would be greatly appreciated.
Many thanks,
Alan Searle