Sab*_*wan 1 customization workflow-foundation ondemand dynamics-crm-2011
我必须在我的自定义实体上运行ondemand工作流,
假设我有100万条记录,那么我怎样才能在这些记录上运行这个工作流程.
因为,据我所知,我们只能选择记录,并从功能区点击运行工作流程并指定它.通过这种方式,在单次尝试中,我只能选择一个页面记录,从而限制访问
任何的想法?
你不能用UI做到这一点.最简单的方法是使用一个小程序来选择所有记录并触发工作流程执行.
您可以使用ExecuteWorkflowRequest此任务.
// Create an ExecuteWorkflow request.
ExecuteWorkflowRequest request = new ExecuteWorkflowRequest()
{
WorkflowId = <insert workflow id here>,
EntityId = <insert record id here>
};
// Execute the workflow.
var response = (ExecuteWorkflowResponse)_serviceProxy.Execute(request);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3604 次 |
| 最近记录: |