Solved

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

Posted on 2013-01-31
3
324 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
ID: 38843245
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
ID: 38844748
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
ID: 38844797
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read this checklist to learn more about the 15 things you should never include in an email signature.
In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
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…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

770 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