Example #1
0
        static void SendAlert()
        {
            Guid OfficeId = new Guid("c53112ee-5868-43aa-bcf5-52454f589daa");
            Guid RoleId   = new Guid("7c83e591-a861-4b4f-bd1d-12f99cc32123");

            string[] usersToAlert = WorkflowSupport.GetUserAtOfficeRole(OfficeId, RoleId);

            Dictionary <string, object> InfoList = new Dictionary <string, object>();

            InfoList.Add("item1", Guid.NewGuid());
            InfoList.Add("item2", Convert.ToInt32("568"));
            XmlDocument doc = new XmlDocument();

            doc = WorkflowSupport.SerilizeDictionary(InfoList);
            foreach (string user in usersToAlert)
            {
                WorkflowSupport.SendAlert("admin", user, "link", "Test Message", doc);
            }
            Dictionary <string, object> AlertsInfo = new Dictionary <string, object>();

            AlertsInfo = WorkflowSupport.DeSerilizeDictionary(doc);
        }