在我的解决方案中,我有一个工作流程,其中一步包含对Queue的引用。 在另一个CRM实例上导入此解决方案后,无法激活此工作流,因为它包含无效的引用 - 无法解析队列。 在新CRM上创建具有相同名称的队列,但解析可能基于记录Guid。
现在,我想知道,有没有办法使用CRM SDK编辑工作流程步骤? CRM解决方案部署的整个过程是自动化的。 我想删除所有手动工作。 一些例子会很棒:)
Thanx提前!
In my solution I have a workflow where one step contains a reference to Queue. After importing this solution on another CRM instance this workflow could not be activated because it contains an invalid reference - Queue can not be resolved. Queue with same name is created on new CRM but resolving is probably based on record Guid.
Now, I'm wondering, is there a way to edit workflow steps using CRM SDK? Whole process of CRM solution deployment is automated. And I want to remove all manual work. Some example would be great :)
Thanx in advance!
最满意答案
如果在从一个环境部署到另一个环境时,工作流查找中的Guids不匹配,则可以执行两项操作。
使用API创建WF中引用的那些记录。 创建记录时,您实际上可以指定它用作ID的Guid。 因此,编写一个工具或查看是否已存在可为您的环境创建一些默认数据的工具。
使用配置实体,引用WF中所需的所有EntityRefrence。 然后,您可以创建自定义工作流活动以检索包含该环境中所有引用的配置实体记录(应该只有一个)。
There are 2 things you can do if you are having issues with the Guids not matching in a workflow lookup when deploying from one environment to another.
Use the API to create those records referenced in the WF. When you create a record you can actually specify the Guid that it uses as the id. So write a tool or see if one exists already that will create some default data for your environment.
Use a configuration entity with references to all the EntityRefrences needed in your WFs. Then you can create a custom workflow activity to retrieve the configuration entity record (there should only ever really be one) that contains all the references in that environment.
更多推荐
发布评论