Outlook Form and Workflow Problem

  • From: "alessandro dell'anna" <alessandro.dellanna@xxxxxxxxxxxxx>
  • To: <exchangelist@xxxxxxxxxxxxx>
  • Date: Mon, 13 May 2002 21:52:53 +0200

Hi all,

I have a big big problem with workflow designer script and outlook form.

1) I have created a form in outlook that I saved in a public folder.
2) I have created workflow schemas with Ms Workflow Designer with some VBScript 
associated to each state of the message.
3) The first state (create item) must send a simply email with the following 

Sub SendMessage (strTo, strSubject, strBody)
        Dim iConf
        Set oMsg = CreateObject("CDO.Message")
        'Create the configuration object
        Set iConf = CreateObject("CDO.Configuration")
        Dim Flds
        'Set the fields of the configuration object to send using exchange 
        Set Flds = iConf.Fields
        Flds( "http://schemas.microsoft.com/cdo/configuration/sendusing";) = 3
        'Set the message to,from,subject,body properties.
        Set oMsg.Configuration = iConf
        oMsg.To = strTo
        oMsg.From = WorkFlowSession.Sender
        oMsg.Subject = strSubject
        oMsg.TextBody = strBody
        Set oMsg = Nothing
End Sub

4) In Outlook, when I create a new Item (that is associated with the VB code 
above) I get an "Unknow error".

5) On the Event Viewer of the Exchange Server I get the following error:

Folders/workflow/TestForm1.EML>: Previous state "", New state "Submit to 
manager", didascalia "Create and Submit", EventType "OnCreate", ID riga tabella 
operazioni "1".  Run time error at line 85. Source: Errore di run-time di 
Microsoft VBScript Error: 800a01ad. Description: The ActiveX Component can't 
create the object: 'CDO.Message' 

Maybe permissions problem .... But where and on wich file ????

Tanx for your help.

Alessandro Dell'Anna
Resp. Information Technology
Ixora Team s.r.l.
Via Vittorio Emanuele III, 28
Tel. ++ 39 0461 706685
Fax. ++ 39 4061 707081

Other related posts:

  • » Outlook Form and Workflow Problem