摘要: 这篇是plugin的终结. 通过之前的11期我们应该发现了plugin其实学习起来不难. async plugin 是把plugin的功能async run起来. e.g. 我们之前做过的preOperation的plugin会马上执行并且马上有数据显示在entity中. 但是async plugi 阅读全文
posted @ 2019-04-30 21:07 TheMiao 阅读(477) 评论(0) 推荐(0) 编辑
摘要: Config data 可以在registering step 的时候来配置 配置好的config data 可以使用 constructor 来获取 Secure Config 和 UnSecure Config 的区别 Unsecure 在Unsecure里面的信息可以保存到导出的.zip so 阅读全文
posted @ 2019-04-28 22:26 TheMiao 阅读(463) 评论(0) 推荐(0) 编辑
摘要: Isolation Mode 也被称作为Plugin Trust CRM里面有两种plugin trust / isolation mode 1. Full Trust 只在OP系统中可使用,没有限制 plugin 挂掉之后会影响到CRM服务器运行. 可以访问服务器文件 2. Partial Tru 阅读全文
posted @ 2019-04-28 21:48 TheMiao 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 让我们来看看官方文档是怎么讲的 https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg326836(v=crm.8) Every time a running plug-in or 阅读全文
posted @ 2019-04-25 07:11 TheMiao 阅读(835) 评论(0) 推荐(0) 编辑
摘要: CRM 可以实现plugin之前的值传递. 我们可以使用SharedVariables 把值在plugin之间传递 实现plugins之间的传递非常简单,我们只需要用key value pair来配对传递. 读取的时候用key来获取相应key的value 阅读全文
posted @ 2019-04-23 20:22 TheMiao 阅读(545) 评论(0) 推荐(1) 编辑
摘要: 我们之前创建的plugin都是使用default的 run in User's Context. 理解就是使用正在登陆的security context用户信息 那有个问题,如果当前用户的security role没有相应的权限访问功能,我们就要安排一个新的用户 e.g. admin来记录信息而非当 阅读全文
posted @ 2019-04-23 20:13 TheMiao 阅读(654) 评论(1) 推荐(1) 编辑
摘要: 我们之前都学习到怎么添加,debug还有update plugin. 今天带大家过一下怎么从CRM instance当中删除plugin. 首先让我们打开Settings -> Customizations -> Customize the system 打开Plugin assemblies 然找 阅读全文
posted @ 2019-04-22 21:09 TheMiao 阅读(504) 评论(0) 推荐(1) 编辑
摘要: Snapshots of the primary entity's attributes from database before(pre) and after (post) the core platform operation. 怎么理解这句话呢 简单的我们可以理解PreOperation与Po 阅读全文
posted @ 2019-04-21 23:20 TheMiao 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 最近发现有人使用CRM的user primary email作为GUID, 并且做了plugin来控制user primary email. 这样做法是非常有问题而且会影响同名的再次注册的用户. 假如我们现有一个用户是ergouzi@test.com,并且他已经离职. 新来的用户的alias也是er 阅读全文
posted @ 2019-04-17 20:48 TheMiao 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 写了这么多期的随笔,很多人会问,怎么debug写好的plugin呢 首先我们需要准备以下内容 Visual Studio Plugin Registration Tool CRM Instance Error Log 首先,我们要打开Plugin Registration Tool 然后我们需要In 阅读全文
posted @ 2019-04-14 08:37 TheMiao 阅读(693) 评论(0) 推荐(0) 编辑