Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7916949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:59:07+00:00 2026-06-03T14:59:07+00:00

I am attempting to automate the creation of an Outlook Task using JavaScript in

  • 0

I am attempting to automate the creation of an Outlook Task using JavaScript in a local IE-only environment (using Outlook 2007/2010). I have been able to do so using an Outlook ActiveX object, with one minor catch, my method creates the task in the user’s default mailbox. (The 9 in the code below is the enumerated constant for the task folder)

What I need to do is create the task in a separate shared mailbox. I am looking for a way to set the task to the specific shared mailbox (that the user has access to) by name rather than the user’s personal (default) folder. What I have so far is below.

     function createTask() {
               //create Outlook object and map to the task folder
                var outlookApp = new ActiveXObject("Outlook.Application");
                var nameSpace = outlookApp.getNameSpace("MAPI");
                var mailFolder = nameSpace.getDefaultFolder(9); //olFolderTask

               //create the task
               var task = mailFolder.Items.add('IPM.Task');
                //set task properties 
                task.Subject = 'Subject';
                task.Body = "Body of Task";          
                task.StartDate = "01/01/2012";
                task.DueDate = "06/01/2012";
                task.ReminderSet = true;
                task.Save();
      }

I have found some potentially useful information here, with an alternate to the getDefaultFolder function in GetFolderFromID, but I have not been able to find a way using JavaScript/ActiveX to get the needed EntryID just from the Shared Mailbox’s name.

I am new to working with Outlook, any suggestions or guidance would be appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:59:09+00:00Added an answer on June 3, 2026 at 2:59 pm

    Try using the Session.Stores as discussed in this SO post. It contains all the available mailbox stores (Store) a user has in their profile.

    Once you’ve identified the Store you’re after, you can use Store.GetDefaultFolder to retrieve the shared mailbox task Folder you are interested in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working to automate some deployment processes using just Nant for the
I am attempting to use Powershell to automate the builds of projects using a
I am attempting to automate moving files from a folder to a new folder
I am attempting to automate committing some files to SVN during our automated build
Attempting/struggling to get registration and sign-up working within an active admin project. I have
I am attempting to automate the entry of data into form fields. The problem
I've been attempting for the last week or so to compile any of the
I am attempting to automate some legacy Delphi 5 builds with an MSBuild script,
I am attempting to use Popen to automate a simple telnet session. In python
I am attempting to make it so that we can have our application to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.