Want to add a tab like Main, Calendar, Contacts and Tasks in Outlook

Add-in Express™ Support Service
That's what is more important than anything else

Want to add a tab like Main, Calendar, Contacts and Tasks in Outlook
Can I add a new Tab like Main, Calendar, Contacts and Tasks in Outlook? 
shahid




Posts: 30
Joined: 2014-03-24
Hi Andrei

Yes tried this but unable to rename the root folder. Following is the code which I have written in my Form class

private void _timer_Tick(object sender, EventArgs e)
{
MessageBox.Show("Timer elapsed");
var addInModule = ((AddinModule)this.AddinModule);
addInModule.ribbonUI.ActivateTab("adxRibbonTab_e2a355dd91f14b36bd57e0917bb56ed5");
addInModule.SolutionModule.Folders[0].FolderName = "Tickets (1)";
}

The timer do elapse after one minute but the folder name is not changing. Outlook 2010

Regards
Shahid Iqbal
Posted 31 Mar, 2014 04:11:47 Top
Andrei Smolin


Add-in Express team


Posts: 17361
Joined: 2006-05-11
Shahid,

You need to modify the name of the actual folder, not the settings of the component.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 31 Mar, 2014 05:25:31 Top
shahid




Posts: 30
Joined: 2014-03-24
Hi Andrei

Can you please send me a piece of code to rename. I thought this line

addInModule.SolutionModule.Folders[0].FolderName = "Tickets (1)";

is to rename the root folder.

Kindly send me a code line which could help

Regards
Shahid
Posted 31 Mar, 2014 06:37:12 Top
Andrei Smolin


Add-in Express team


Posts: 17361
Joined: 2006-05-11
Shahid,

The component provides the ParentFolderRequestEx event. e.ParentFolder retrunrs (and sets) an Outlook.MAPIFolder representing the Outlook folder which is created for the component's root folder. Hope the above makes sense. )

You can use that MAPIFolder to navigate the hierarchy of the Outlook folders created by the component.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 31 Mar, 2014 10:41:01 Top
shahid




Posts: 30
Joined: 2014-03-24
Hi Andrei

What I want to do is to rename the Root folder in my "timer_tick" event. What you have suggested is an event for the ADXOLSolutionModule. I think you might be not getting me. Here is a bit of detail of what I want to achieve

I have a timer which elapse every 2 minutes. In this timer_tick event handler, I want to rename my root folder. I will send you an email with screen shot to explain it better.

Thanks And Regards
Shahid Iqbal
Posted 31 Mar, 2014 23:51:08 Top
Andrei Smolin


Add-in Express team


Posts: 17361
Joined: 2006-05-11
Hello Shahid,

Thank you for sending me the screenshot. You cannot rename the Solution Module's item in the Navigation Pane.

My suggestions were targeting a different task: to rename the Outlook folder created for the root element of the Solution Module. I'm sorry for the confusion.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Apr, 2014 02:59:30 Top
shahid




Posts: 30
Joined: 2014-03-24
Hi Andrei

Alright. Can you please help. I have to show total ticket count to the user. Is there any place in outlook where I can show this count (All the time whether user have opened Tickets folder or not)

Regards
Shahid Iqbal
Posted 01 Apr, 2014 04:11:28 Top
Andrei Smolin


Add-in Express team


Posts: 17361
Joined: 2006-05-11
You can use a pane. You can show it e.g. at the bottom of the Navigation Pane.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Apr, 2014 04:28:22 Top
shahid




Posts: 30
Joined: 2014-03-24
Hi Andre

I need to show a new email alert like popup when a new ticket is added to my ticket list. I have a timer working behind my custom form which is listening every 2 minutes for new tickets. What I want is to notify the user on new ticket arrival like a user is notified when a new email is added to the Inbox.

Is this possible with Add in Express and how?

Thanks And Regards
Shahid Iqbal
Posted 02 Apr, 2014 01:50:01 Top
Andrei Smolin


Add-in Express team


Posts: 17361
Joined: 2006-05-11
Hello Shahid,

The Outlook object model doesn't let you achieve this. Consider showing a pane.

I suggest that you start a new topic for new questions.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 02 Apr, 2014 02:36:15 Top