admin 管理员组

文章数量: 1086019

link-entity中的Attribute查询需要注意两点:

1 在Attribute的name前,需要加上link-entity的alias的name。

2 在获取Attribute的值时,需要用AliasedValue强制转换。

demo

string fetchQuery = @"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
                            <entity name='new_priceevaluationdetail'> 
                                <attribute name='new_priceevaluationdetailid' />
                                <filter type='and'>
                                    <condition attribute='statecode' operator='eq' value='0' />
                                </filter>
                                <link-entity name='new_partinfo' from=

本文标签: Plugin CRM Dynamics entity LINK