简体   繁体   English

MS Dynamics CRM。 工作流程更新记录

[英]MS Dynamics CRM. Workflow update record

I have workflow that updates entity record after checking condition. 我有检查条件后更新实体记录的工作流程。 Everything works well. 一切正常。 But... For example workflow's owner is User1 and i try to modify the record with User2. 但是...例如,工作流的所有者是User1,而我尝试使用User2修改记录。 I thought field "Modified By" must have a value User2, but it has a value User1. 我认为字段“ Modified By”必须具有一个值User2,但它具有一个值User1。 Why? 为什么?

Automatic workflows inside Dynamics CRM always run in the security context of the owner of the workflow. Dynamics CRM中的自动工作流始终在工作流所有者的安全上下文中运行。

In your case the owner of the workflow is User1, so it's right that the modifiedby field has User1 value. 在您的情况下,工作流的所有者是User1,因此对吧,Modifyed字段具有User1值。

To complete the answer, on-demand workflows run in the security context of the running user. 为了完成答案,按需工作流在运行用户的安全上下文中运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM