Hey*_*ude 2 dynamics-crm dynamics-crm-online dynamics-crm-2016
我试图从这里了解插件示例.有这种情况:
// The InputParameters collection contains all the data passed in the message request.
if (context.InputParameters.Contains("Target") &&
context.InputParameters["Target"] is Entity)
Run Code Online (Sandbox Code Playgroud)
一般来说,不仅仅是关于这个样本,我应该根据什么先验知识来决定访问特定的财产?我怎么知道测试是否InputParameters包含一个"Target"键(我假设我不应该猜它)?
在什么基础上我可以知道"Target"映射的值是否是Entity类型,而不是其他类型?
我从2年前发现这篇文章,我找到了这个网页,说(重点是我的):
在插件中,context.InputParameters和context.OutputParameters中的值取决于您在其上注册插件的消息和阶段.例如,"目标"存在于InputParameters中,用于创建和更新消息,但不存在于SetState消息中.此外,OutputParameters仅存在于Post阶段,而不是Pre阶段.没有单一的文档源可以通过消息和阶段提供完整的InputParameters和OutputParameters.
从我的搜索中,单个源仍然不存在,但也许可以使用Dynamics Online平台找到可能的值,可能在设置菜单的某个位置?任何来源都会很棒.
| 归档时间: |
|
| 查看次数: |
4322 次 |
| 最近记录: |