How to Override the OK button in Reminder notification - windows-phone-7

I use ScheduledActionService to create a reminder with Uri. I like to know:
1) It is possible override the ok button or to write some code in the OK button which shows inside the reminder notification that pop up when time is due?
2) How to change the project name that display inside this reminder notification?
Thanks.

1) No, reminder look is not possible to change. All reminders must be freely recognizable be a user.
2) You can change it in WMAppManifest.xml (Title="") or in project settings: Application - Deployment options - Title.

Related

PidlidPrivate in MAPI will not hide the message

I am checking PidlidPrivate property in MAPI.
Based on https://learn.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidprivate-canonical-property, this property can hide the message.
So I use MFCMAPI to set the value of PidlidPrivate property to True. But that does not work. The message will always show.
I test in Outlook 2019.
No, the message will not be hidden. It is only applicable to appointments from other user's calendars - if an appointment is marked as private, Outlook won't show its details (only start/duration). All of its properties are still accessible through MAPI.
If you want a message to be invisible to an end user, create a hidden (associated) item. Outlook Object Model exposes messages like that through MAPIFolder.GetStorage. You can see these messages in OutlookSpy (I am its author) if you click IMAPIFolder button and go to the "Associated Contents" tab. It will also let you edit MAPI properties (click IMessage button, double click on a property, etc.)

Outlook VSTO - ActiveInspector returns the incorrect contact window's information

Globals.ThisAddIn.Application.Explorers.NewExplorer += new ExplorersEvents_NewExplorerEventHandler(DoNewExplorer);
I am trying to get the information from an email that I previously opened (by double-clicking) in outlook.
The code works fine until I open multiple emails. What I am finding is that when I click on an email, the inspector activates, but I am getting the information from the last active window, not the current one that I clicked on.
In the Activate event handler you can always call the ActiveInspector method of the Outlook Application class.
Note, the Inspectors collection contains all opened inspector windows, so you could get all of them or find the required one.
Firstly, your code tracks the Explorers.NewExplorer event, not Inspectors.NewInspector.
Secondly, for the Inspectors.NewInspector event, make sure you are using the Inspector object passed to your event handler rather than Application.ActiveInspector: by the time Inspectors.NewInspector event fires, the inspector might not yet be visible/active.

Cannot read Outlook Sent Items with Blue Prism Mapiex Get Mail function

I tested reading mail from Sent Items with BP Mapiex Get Mail, but it only works with Inbox (default folder in action). Folder name is correct (I took it as I see it in Outlook).
Error message: Failure in Get Mail function of Blue Prism Extended
MAPI Automation. Failed to open sub-folder 'Sent Items'.
Would anyone have any ideas, what can help it work with Sent Items?
Thanks!
This is because Get Mail was configured to look in the Inbox only (and sub folders within the inbox). You can add a rule in Outlook to move the sent items to a sub-folder (then you use the Get Mail action), or add a new page in your MAPIEx object. If you go with the latter, you can proceed like this:
Open the MAPIEx object and duplicate the page called 'Get Mail', rename the page and the code stage to something else, such as Get Sent Items, then publish it. I did it this way:
Open the code stage and edit this line (line 17) so that it looks like the following, from OpenInbox() to OpenSentItems():
Editing the highlighted items is optional but preferable as it makes it easier to debug should there be issues. For instance, you would change anything that says Inbox to Sent Items.
From there you can call the action from your process just like you would call Get Mail.

How to use teamcity.build.triggeredBy.username property in case when build was triggered by schedule

My case is what I want to send custom email (not notification) to user who run a build. But in case when build was triggered by schedule I want to send the email to the default user (release manager). teamcity.build.triggeredBy.username property is good for me except when build was triggered automatically. teamcity.build.triggeredBy.username not defined and I got "%teamcity.build.triggeredBy.username%" value instead "" as I expected.
What the best way to solve the issue?
Instead of writing a custom module, what you can do instead is utilize the notifications tab in teamcity
In the notifications tab, there are genreic notification rules that can be sent. In your case, you can set a notification alert to send a mail to the person who ran/broke the build. There are various options . I would suggest you play with them a bit to figure out which one you need exactly
you can check teamcity.build.triggeredBy property: it's always available and will be set to Schedule Trigger. e.g. in linux-sh:
if [ '%teamcity.build.triggeredBy%' == 'Schedule Trigger' ]; then ...; fi

Capturing changes to MailItem.SendUsingAccount property in Outlook

I am working on an Outlook extension that requires making a change to a MailItem open in a compose window if the SendUsingAccount property is changed via the GUI. I would like to be albe to apply my changes automatically, but I cannot find any events that are raised when the user makes the change. I have tried listening to the following events with no success:
mailItem.PropertyChange
mailItem.CustomAction
mailItem.CustomPropertyChange
Are any events raised when the SendUsingAccount property changes?
No, is the short answer.
You could hack up a timer to check for the change on the property.
Marcus

Resources