Originally Posted by novelltry
|
Hello,
I am trying to open an email from a VBScript.
Here is the actual code snippet:
|
Code:
|
Set oApp = CreateObject("NovellGroupWareSession")
Set oAcct = oApp.Login(strGwLoginName, "", "novell")
Set GWDDE = CreateObject("GroupwiseCommander")
Set sResult = nothing
'Message Id is from a SOAP request. Is here the problem?
GWDDE.Execute "ItemOpen (""""4A5EE77A.GWDom.GWPO.100.1766576.1.5F.1@1:4A5DB4D8.GWDom.GWPO.100.1766576.1.39.1@35"""", """"Test"""")",""
'executing NewMail works fine!
'GWDDE.Execute "NewMail()", "" |
The problem is that when I am trying to open the item nothing happens.
Calling the NewMail method works very well. Then a new mail window appears.
Any help would be appreciated.
|
Ok, I have solved one problem. I am now able to open a mail object.
|
Code:
|
Set oApp = CreateObject("NovellGroupWareSession")
Set oAcct = oApp.Login(strGwLoginName, "", "novell")
Set GWDDE = CreateObject("GroupwiseCommander")
Set sResult = nothing
'Message Id is from a SOAP request. Is here the problem?
GWDDE.Execute "ItemOpen (""""4A5EE77A.GWDom.GWPO.100.1766576.1.5F.1@1:4A5DB4D8.GWDom.GWPO.100.1766576.1.39.1@35"""", """"Test"""")",""
' Opens the item in a popup
GWDDE.Execute "ViewItem ()","" |
But when I try to open another different mail object it still opens the old one.
This is confusing. Do I have to reset the view or something?
Any help is appreciated again :)
Thank you.