Solved

Modify Outlook 2007 Task Form to get a resource via HTTP & Parse XML from SharePoint

Posted on 2013-01-31
3
319 Views
Last Modified: 2013-02-20
In SharePoint 2007, I have a project task list. One of the columns in that project task list is a lookup to the project list to get the project name.

I connect the project task list to Outlook and can now manage these tasks from Outlook.

Since the project name is a lookup in the SharePoint project task list (that I connected to Outlook), I cannot see the project name in the Outlook task form.

Is there a way to modify the task form in Outlook, possibly with VBA, to get a resource via HTTP? If so, I can reference the XML from the project list but then I would need to parse it to reference only the project name column (is that possible)?
0
Comment
Question by:lessthan2
  • 2
3 Comments
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
Hi, lessthan2.

You can modify the task form in Outlook and you can add code to the form that gets a value from a web page.  That code would be in VBScript though, not VBA.  I'm not nearly knowledgeable enough on SharePoint to tell you how to go about doing what you've described though.  Do you have the URL of the project list?
0
 

Author Comment

by:lessthan2
Comment Utility
Yes, I do have the URL for the project list. Are there examples of the VBScript that you can point me to?
0
 
LVL 76

Accepted Solution

by:
David Lee earned 300 total points
Comment Utility
You can use something like this to get whatever the URL points to.  You'll then have to parse the returned string to get what you want.

Function GetURL(strURL As String) As String
    Dim objHTTP
    Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")
    objHTTP.Open "GET", strURL, False
    objHTTP.Send ""
    GetURL = objHTTP.responseText
    Set objHTTP = Nothing
End Function

Open in new window

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now