How to set the "Mark Completed" flag in Exchange 2007 w/SP2 - outlook

Does anyone know how to programmatically set the "Mark Complete" flag in Exchange 2007 which makes a check mark appear in outlook. In outlook you can right click and select the "Mark Complete" option. I want to achieve this programmatically based on some conditions. Any ideas on how to do this would be greatly appreciated.

You have to use the ExtendedPropertyDefinition class:
//PidTagFlagCompleteTime
ExtendedPropertyDefinition epd_PidTagFlagCompleteTime = new ExtendedPropertyDefinition(0x1091, MapiPropertyType.SystemTime);
msg.SetExtendedProperty(epd_PidTagFlagCompleteTime, DateAndTime.Now);

Related

Unable to change Out Of Office Status in Microsoft Team

I set a Out off Office meeting reminder in future in MS Outlook and now my MS Teams is showing Out Of Office.
I checked the setting in my MS Outlook and also tried to manually change my status in MS Teams but in vain.
Where can I fix my out of office setting so that my MS Team shows normal "Available, Away or Busy" status instead of "out of office available/busy/away" ?
The reason may be you have accepted someone’s Out of Office (OOO) appointment. Goto your calendar and reject it.
I solved the similar issue like below.
Go to your Outlook and Click on File
Make sure to check this option (Do not send automatic replies)
1.first turn off automatic reply.
2.Sync your email from outlook by send/receive -> update folder. It will connect
with outlook server. Once it is synced your teams status will be changed.
Type /busy in your teams search box .

Message box when I receive mail in outlook

I would like to make message pop-up in Autohotkey when there is new message in Outlook. I have tried to use ComObjActive("Outlook.Application") with no joy. Also documentation for COM objects is pretty vague on Autohotkey site. Message should be like msgbox New Mail Received. This is similar to default message pop-up in Outlook. I just need this in AHK.
Main reason is that I'm using Desktops from Sysinternals. This program makes 4 separated desktops. When I run outlook on one desktop, I can't see new message pop-up from outlook on the other desktop. I need a simple AHK script that will tell me when there is a new mail, when I'm on different desktop than the one that is running Outlook.
In the System-StatusBar, their is an icon of outlook, which changes\animates for sometime when a new mail is received.
We can use AutoHotKey > ImageSearch/PixelSearch for the same to find the difference.
Add a SetTimer with ImageSearch/PixelSearch.
Compare and If difference is found >> You Got A Mail.
As Simple As That. If you need futher help with Scripting, Please feel free :)
Hope this Helps :)
I'm not used to AHK but after some research I came up with the following AHK script which should do what you need:
oOutlook = ComObjActive("Outlook.Application")
ComObjConnect(oOutlook, "outlook_")
return
outlook_NewMail() ;uses the COM event NewMail
{
msgbox New Mail Received
oOutlook.Visible := 1 ;make Outlook visible
oOutlook.Activate ;and bring to front
}
To stop listening to the outlook COM events use
ComObjConnect(oOutlook)

Error while attaching "Sales Lit" document with Dynamics 365 Outlook App

Up until sometime in the last few days, I was able to easily attach "Sales Lit" documents to emails in outlook with the Dynamics 365 Outlook App. You would start an email, click the "Dynamics 365" button in the ribbon, then select "Sales Lit", locate the attachment in the subject tree, and click "Add to Email". Then the file(s) you had uploaded inside of Dynamics 365 to a "Sales Literature" record would be attached to the email you were drafting.
However, people in my organization started complaining yesterday that they got a "download failed" error when doing this. I'm getting this error too, and if I save the email as a draft and reopen it, I get a list of errors for each attachment, each error reads: "An error occurred while updating permissions for '[FILENAME]'. Retry | Dismiss"
If it's a permissions thing, where would I change that? In security roles in Dynamics 365? Or Microsoft just up to something?
Error Screenshot # 1 "Download Failed" initial error
Error Screenshot # 2 "error while updating permissions..." looking at draft email
Just want to confirm this started happening in our organization 3 days ago as well, we are using Dynamics 365 with the Dyn365 Outlook integration. I was just searching to see if Microsoft had been informed. May need to report to Microsoft, since this does not appear to be something in your control.
Found this fix that worked for me: What if you want Outlook 2016 to behave like Outlook 2013 and earlier? Well, the Attach File with the drop-down is not customizable directly, but you can add an old-style Attach File button. To do this, start a new email, right-click the toolbar, and click Customize the Ribbon. Right-click the New Mail Message section on the right and choose to Add a new group. Then select the Attach File command on the left, and the new group on the right, and click Add. I have called my new group Custom:
http://www.itwriting.com/blog/9343-outlook-2016-attachment-mysteries-and-annoyances.html

How can you prevent the "Update Links" dialog to appear when opening documents from code?

I'm trying to Update Links of inDesign documents using ExtendScript, but whenever I open the document the dialog appear asking me if I want to update the link.
I want to do it in the background, so is there a way to prevent this or any dialog from showing?
Thanks
I have found a solution for this particular dialog. This prompt can be disabled from the UI, but also, as with other setting of the application, you can also do in the code.
So here is what I implemented.
//Save the current application setting.
var currentAppSettings = {checkLinksAtOpen: app.linkingPreferences.checkLinksAtOpen};
//Set the value to false to prevent the dialog from showing.
app.linkingPreferences.checkLinksAtOpen = false;
//do some stuff ...
//Set the value back to its original value.
app.linkingPreferences.checkLinksAtOpen = currentAppSettings.checkLinksAtOpen;
There is a setting in InDesign for checking links. What if you modified the default settings in InDesign? Perhaps if you uncheck "Check Links Before Opening Document" it will bypass the dialogue.

Worksheet_SelectionChange event in xla add-in

Is to possible to trigger Worksheet_SelectionChange event in xla add-in. I put the code in Worksheet module of add-in. but it did not enter into this module. My target is to set the comment box in the center of active window. I got the code from here. Please help me.
You need to work with Application-level events if you want to capture an event in another workbook. See here

Resources