Sequential workflow
ex code:
private void codeActivity1_ExecuteCode(object sender, EventArgs e)
{
SPSite site = SPContext.Current.Site;
SPWeb web = site.OpenWeb();
SPList list = web.Lists["Sequentialwfex"];
foreach (SPListItem item in list.Items)
{
if (item["Saddress"] == null)
{
item["Saddress"] = "Please enter correct address value";
item.Update();
web.AllowUnsafeUpdates = true;
}
}
}
No comments:
Post a Comment