有人可以在内容类型的Sharepoint工作流中为我提供帮助吗 [英] Can any one help me in Sharepoint Workflow with content type

查看:53
本文介绍了有人可以在内容类型的Sharepoint工作流中为我提供帮助吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我是SharePoint 2010的新手.在我的组织中,他们提供了一个小的工作流程.
我创建顺序工作流的方法是,在更新主列表时(即在更新任务时要分配要分配的人员),因为在使用内容类型id插入主列表时,任务中出现了错误消息. br/> 在日志文件中,该值表明该值不在范围内..

请在过去的两周内帮助解决此问题.我正在努力解决此问题.


请检查以下代码,该代码适用于创建任务事件,但不适用于内容类型为id事件的创建任务

Hi Friends,

I''m new to sharepoint 2010. in my organization they given one small workflow to do.
I created the sequential workflow in that while updating main list i''m updating the tasks, the person whom to be assigned.In that i''m getting error occured message in Tasks during inserting in the main list using content type id.
In Log file its showing that value does not fall within range error..

Please help to resolve this last two weeks i''m struggling to resolve this issue.


Please check the below code which was working for create task event but not working for create task with content type id event

private void createTaskWithContentType1_MethodInvoking(object sender, EventArgs e)
       {
           try
           {
               string assignedTo = GetHRUser_BUID(workflowProperties.Web, "HRDetails", "1");
               taskId = System.Guid.NewGuid();

               workflowTaskProperties.Title = "Input Approval Task";
               workflowTaskProperties.AssignedTo = assignedTo;
               workflowTaskProperties.StartDate = DateTime.Now;
               workflowTaskProperties.DueDate = DateTime.Now.AddDays(1.0);
               workflowTaskProperties.ExtendedProperties["ApproverLevel"] = "HRNAME";
               workflowTaskProperties.SendEmailNotification = true;
               // taskItemURL = workflowProperties.Web.Url + "/" + workflowProperties.TaskList.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url + @"?ID=";
               HstDescription = string.Format("Workflow task has been created for {0}", assignedTo);
               HstOutcome = "Create task event has been competed.";


           }
           catch (ArgumentException ex1)
           {
               HstDescription = string.Format("EXCEPTION OCCURED; MESSAGE : {0} STACK TRACE :{1}", ex1.Message, ex1.StackTrace);
               HstOutcome = string.Format("EXCEPTION OCCURED; DETAILS : {0}", ex1.ToString());
           }
           catch (Exception ex)
           {
               HstDescription = string.Format("EXCEPTION OCCURED; MESSAGE : {0} STACK TRACE :{1}", ex.Message, ex.StackTrace);
               HstOutcome = string.Format("EXCEPTION OCCURED; DETAILS : {0}", ex.ToString());
           }
       }

推荐答案

大家好,这是我错过的错误,我通过了SharePoint管理器并看到了内容类型ID,但事件接收者URL不在已更新,因此我创建了Windows应用程序,并且现在可以正常运行了!
Hi all this is the error i missed out i went through the sharepoint manager and see the content type id there the event reciever url is not updated so i create the windows application and update that same now its working fine!


这篇关于有人可以在内容类型的Sharepoint工作流中为我提供帮助吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆