MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Dynamically adding approvers in Approval workflow

  Asked By: Tejaswani    Date: Aug 24    Category: MOSS    Views: 4939

My goal is to assign approvers for
an an existing approval workflow and start it whenever a new list item
is uploaded to the document library IN THE CODE. I am using MOSS 2007
with VS 2008.

For Ex: People from the Finance_uploaders group upload documents and
thats when I have to start the approval workflow and assign it to
Finance_approvers. There will be numerous groupname_uploaders and
groupname_approvers in the system. So uploaders of any group should
start and assign the workflow to approvers of that group only.

I dont see any Approvers property for the SPWorkFlow Wf object. I am
doing all the creating and starting workflow in the ItemUpdated event.



1 Answer Found

Answer #1    Answered By: Chandrabhan Agarkar     Answered On: Aug 24

You can't add approvers  to a pre-built OOB workflow  programmatically. You can
change the approvers being used when you instantiate the workflow in a library
or when you start  the workflow manually. To change it programmatically when a
workflow is started automatically you will need to build your own custom

Didn't find what you were looking for? Find more on Dynamically adding approvers in Approval workflow Or get search suggestion and latest updates.