Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: MS Outlook GetSharedDefaultFolder

by Mitch (Sexton)
on Sep 03, 2003 at 22:23 UTC ( [id://288752]=note: print w/replies, xml ) Need Help??


in reply to Re: MS Outlook GetSharedDefaultFolder
in thread MS Outlook GetSharedDefaultFolder

I tried that, but $p2 is empty and doesn't return an error. I am able manually open the inbox (via Outlook) so I don't think it's a permission issue. In the past I have been able to read from Public folders, but this is the first time I've tried a shared inbox. I was hoping it would turn out to be a syntax issue, but I think the syntax is OK.

Mitch

Replies are listed 'Best First'.
Re: Re: Re: MS Outlook GetSharedDefaultFolder
by guha (Priest) on Sep 04, 2003 at 09:46 UTC

    Perhaps you should use Win32::OLE->LastError() instead of $! for a descriptive OLE error msg.

    $! is for perl errors not OLE, note that Win32::OLE->LastError() is context sensitive like $!.

    It reports the error number in numeric context and an error msg in string context

    I would even consider setting the Warn option to always croak, in normal situations like this

    Win32::OLE->Option(Warn => 3);

    HTH

      Thanks for the tip. I used the LastError() and it returned

      OLE exception from "Microsoft Outlook": The messaging interface has returned an unknown error. If the problem persists, restart Outlook.
      Win32::OLE(0.1502) error 0x80004002: "No such interface supported"
      in METHOD/PROPERTYGET "GetSharedDefaultFolder"

      Mitch

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://288752]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found