简体   繁体   English

D365 我可以更新 systemuserid 吗?

[英]D365 Can I update systemuserid?

In our D365 online environment we have multiple sandboxes and production instances.在我们的 D365 在线环境中,我们有多个沙箱和生产实例。 In each of these the systemuserid is different (user import was done before I joined..).在每一个中,systemuserid 都是不同的(用户导入是在我加入之前完成的..)。 This mismatch in SystemUserId is also happening when new user is added.添加新用户时也会发生 SystemUserId 中的这种不匹配。 (my own user record for example that was added last week) (例如上周添加的我自己的用户记录)

I know updating systemuserid in onPrem was unsupported but was possible but with online environment what are my best options to fix this issue?我知道在 onPrem 中更新 systemuserid 不受支持,但这是可能的,但是在在线环境中,解决此问题的最佳选择是什么? With different Guids, all references (workflow etc) are failing when moving solution across different environments.使用不同的 Guid,在不同环境中移动解决方案时,所有参考(工作流程等)都会失败。

Coming here as my last option as I have googled and looked in to SDK already.来到这里是我的最后一个选择,因为我已经用谷歌搜索并查看了 SDK。

Thanks,谢谢,

You can't update an ID at all.您根本无法更新 ID。 I usually copy my production database in all my dev environment to avoid this problem.我通常在我的所有开发环境中复制我的生产数据库以避免这个问题。 D365 also make it easy to do so. D365 也可以轻松做到这一点。 You should take a moment between two sprints to do it because it can help to have to system user ID and entities object type code identical everywhere.您应该在两个 sprint 之间花一点时间来完成它,因为它可以帮助系统用户 ID 和实体 object 类型代码在任何地方都相同。

hardcoding data into processes is a bad practice, makes your processes really rigid.将数据硬编码到流程中是一种不好的做法,会使您的流程非常僵化。 You can create a configuration entity, stab the sys admin id there and retrieve it.您可以创建一个配置实体,在那里设置系统管理员 ID 并检索它。 If you have a custom workflow activity you will be able to retrieve the record and use it in every configuration task.如果您有自定义工作流活动,您将能够检索记录并在每个配置任务中使用它。

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

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