| Author |
Message |
Mad Dog
Guest
|
Posted:
Fri Sep 02, 2005 4:59 pm Post subject:
Workflow - Return a different from |
|
|
In the Workflow Designer I am trying to return a form from a public
folder. This is essentially a settings form for the workflow, and I am
looking to return a list of people who will want to see every item in
the flow.
My process for this in VBA or script on the form would be to return the
correct MAPIFolder and do a Find on the subject, the read the
appropriate UserProperties of the form.
The workflow designer doesnt seem to like this - I get
"Microsoft VBScript runtime error Error: 800a01a8. Description: Object
required: 'GetFolder(...)'."
Where GetFolder is a function that returns a MAPIFolder - This is a
direct copy of the same function that works in script on my form.
So I thought I would try CreateObject("Outlook.MAPIFolder").
This gives me an active x cant create object error (all my permissions
are definiteloy privelaged as I can create CDO Messages from this
workflow)
Do I need to use CDO instead to try to get my settings form, and if so
how?
IS there a way of getting the workflow designer to use MAPI?
Or will I just have to bite the bullet and move the settings I need
into the workflow item so I can use WorkflowSession.Fields to return
them?
|
|
| Back to top |
|
 |
Mad Dog
Guest
|
Posted:
Mon Sep 05, 2005 4:58 pm Post subject:
Re: Workflow - Return a different from |
|
|
Compromised in the end. I store the user name in my Settings Forms and
read them in to my workflow form in the Item_Open.
This makes them available to the workflow sink using
WorkflowSession.Fields. The Sink can then add permissions for each
user returned. That way I still get some separation of settings from
the workflow item.
If anyone knows of any decent documentation about programming workflow
sink I would be very interested to hear about it. |
|
| Back to top |
|
 |
Tom Rizzo [MSFT]
Guest
|
Posted:
Sun Sep 11, 2005 12:58 am Post subject:
Re: Workflow - Return a different from |
|
|
You don't want to use the Outlook object model since this will run
server-side. You could use ADO in your script to get your message or CDO
1.21.
Tom
--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp
"Mad Dog" <simon.breeze@fieldgroup.com> wrote in message
news:1125671630.848047.156990@g14g2000cwa.googlegroups.com...
| Quote: | In the Workflow Designer I am trying to return a form from a public
folder. This is essentially a settings form for the workflow, and I am
looking to return a list of people who will want to see every item in
the flow.
My process for this in VBA or script on the form would be to return the
correct MAPIFolder and do a Find on the subject, the read the
appropriate UserProperties of the form.
The workflow designer doesnt seem to like this - I get
"Microsoft VBScript runtime error Error: 800a01a8. Description: Object
required: 'GetFolder(...)'."
Where GetFolder is a function that returns a MAPIFolder - This is a
direct copy of the same function that works in script on my form.
So I thought I would try CreateObject("Outlook.MAPIFolder").
This gives me an active x cant create object error (all my permissions
are definiteloy privelaged as I can create CDO Messages from this
workflow)
Do I need to use CDO instead to try to get my settings form, and if so
how?
IS there a way of getting the workflow designer to use MAPI?
Or will I just have to bite the bullet and move the settings I need
into the workflow item so I can use WorkflowSession.Fields to return
them?
|
|
|
| Back to top |
|
 |
|
|
|
|