I'm seeking a method to execute a workflow in Dynamics CRM, for many records, in such a way that every record chosen will start the process of the workflow only AFTER the previous record has finished processing it's workflow successfully.
I must note that I'm dealing with a workflow which has a few child workflows threaded, and therefore my request, so as not to "tangle up" while updating records in the workflow.
Thanx in advance :)
0
votes
1 Answers
0
votes
If Console application is an option, i would write one that:
- gets reference to all records that needs to be processed
- fires workflow for first one Code to start workflow
- in a loop, check if workflow finished for record. You can check this by querying asyncoperation table, regardingobjectid field will have id of record that workflows was executed for
- when workflow finished for record, fire workflow for next record and wait for it to finish