Solved

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

Posted on 2013-01-31
3
322 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Resolve DNS query failed errors for Exchange
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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…

910 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

21 Experts available now in Live!

Get 1:1 Help Now