简体   繁体   English

获取CRM插件的过滤属性列表(已安装)

[英]Getting a list of filtering attributes for a CRM Plugin (already installed)

I have Dynamics CRM 4.0 installed and wrote a plugin, registered it, and setup a "step" that included a few filtering attributes. 我安装了Dynamics CRM 4.0,并编写了一个插件,进行了注册,然后设置了包含一些过滤属性的“步骤”。 2 questions: 2个问题:

  1. How can I get a list of filtering attributes that are configured for my plugin? 如何获取为插件配置的过滤属性的列表? (from within the plugin itself) (来自插件本身)
  2. How can I get a list of those filtering attributes that are actually on the current form being used? 如何获得当前正在使用的当前表单上的那些过滤属性的列表? (also within the plugin itself) (也在插件本身内)

If you want to get every property in an image that you've sent to a plugin you can iterate through the property bag after setting it to a dynamic entity. 如果要获取已发送到插件的图像中的每个属性,可以在将属性设置为动态实体后遍历属性包。 This will include every field on the entity. 这将包括实体上的每个字段。

DynamicEntity postEntity = (DynamicEntity)context.PostEntityImages["entityimage"]

foreach (Property p in postEntity.Properties)
{
    // Do something with my property
}

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

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