Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

How to get the GUID of the workflow

$
0
0

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!


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>