Hi All,
How to get the GUID of the workflow?
public override void Execute(Guid contentDbId)
{
SPWebApplication webApplication = this.Parent as SPWebApplication;
SPContentDatabase contentDb = webApplication.ContentDatabases[contentDbId];
SPList list = contentDb.Sites[0].RootWeb.Lists["Some List"];
SPQuery query = new SPQuery();
query.Query = "<Where>....Query....</Where>";
SPListItemCollection listItemCollection = list.GetItems(query);
foreach (SPListItem item in listItemCollection)
{
if (item != null)
{
StartWorkflow(list, item, "72b5a6c6-fbc0-4c95-v234-0f88b2e27985");
list.Update();
}
}
}
While trying to start workflow using timer job, need workflow GUID. Where to find it?
Thanks in advance!