admin管理员组文章数量:1022843
We are using M$-CRM 2016 onPremise 9.1 and having the following issue:
I have a lookup on the entity salesorderdetail and use addCustomView for a special filter. But I always getting the error mentioned in subject. On deeper search I recognized why, and don't understand why crm this is doing that. I opened the developer tools and network and saw a 400 bad Request. Detailed error: 'SalesOrderDetail' entity doesn't contain attribute with Name = 'name'
But my fetchXml does not contain this attribute. A closer look at this: this attribute is added by crm automatically. I compared it with a customView for quotedetails, and saw that there is also added an attribute, but in this case:
<attribute name="quotedetailname"/>
and this is correct. But on salesorderdetail it should be
<attribute name="salesorderdetailname"/>
Why does M$-CRM add this name-attribute to my fetchxml? Can anyone reproduce this problem and has anybody a solution for it?
thx ©a-x-i
We are using M$-CRM 2016 onPremise 9.1 and having the following issue:
I have a lookup on the entity salesorderdetail and use addCustomView for a special filter. But I always getting the error mentioned in subject. On deeper search I recognized why, and don't understand why crm this is doing that. I opened the developer tools and network and saw a 400 bad Request. Detailed error: 'SalesOrderDetail' entity doesn't contain attribute with Name = 'name'
But my fetchXml does not contain this attribute. A closer look at this: this attribute is added by crm automatically. I compared it with a customView for quotedetails, and saw that there is also added an attribute, but in this case:
<attribute name="quotedetailname"/>
and this is correct. But on salesorderdetail it should be
<attribute name="salesorderdetailname"/>
Why does M$-CRM add this name-attribute to my fetchxml? Can anyone reproduce this problem and has anybody a solution for it?
thx ©a-x-i
Share Improve this question asked Nov 19, 2024 at 7:47 a-x-ia-x-i 3035 silver badges13 bronze badges1 Answer
Reset to default 0My bug was in this line of code:
formContext.getControl("wdps_base_salesorderdetail")).addCustomView(viewId, "product", "Basisprodukt", fetchXml, gridLayout, true);
I passed the wrong logicalName (second parameter). It shoud be "salesorderdetail" rather than "product". The strange thing is the behaviour of Dynamics CRM, because the error-message guides me to the wrong direction and I fot to have a closer look at the code. The other strange thing was, that Dynamics CRM adds an fix parameter to the fetchxml, this is the main-attribute of the entity passed as second parameter. In my case attribute 'name' was the attribute of product.
thx for reading :)
We are using M$-CRM 2016 onPremise 9.1 and having the following issue:
I have a lookup on the entity salesorderdetail and use addCustomView for a special filter. But I always getting the error mentioned in subject. On deeper search I recognized why, and don't understand why crm this is doing that. I opened the developer tools and network and saw a 400 bad Request. Detailed error: 'SalesOrderDetail' entity doesn't contain attribute with Name = 'name'
But my fetchXml does not contain this attribute. A closer look at this: this attribute is added by crm automatically. I compared it with a customView for quotedetails, and saw that there is also added an attribute, but in this case:
<attribute name="quotedetailname"/>
and this is correct. But on salesorderdetail it should be
<attribute name="salesorderdetailname"/>
Why does M$-CRM add this name-attribute to my fetchxml? Can anyone reproduce this problem and has anybody a solution for it?
thx ©a-x-i
We are using M$-CRM 2016 onPremise 9.1 and having the following issue:
I have a lookup on the entity salesorderdetail and use addCustomView for a special filter. But I always getting the error mentioned in subject. On deeper search I recognized why, and don't understand why crm this is doing that. I opened the developer tools and network and saw a 400 bad Request. Detailed error: 'SalesOrderDetail' entity doesn't contain attribute with Name = 'name'
But my fetchXml does not contain this attribute. A closer look at this: this attribute is added by crm automatically. I compared it with a customView for quotedetails, and saw that there is also added an attribute, but in this case:
<attribute name="quotedetailname"/>
and this is correct. But on salesorderdetail it should be
<attribute name="salesorderdetailname"/>
Why does M$-CRM add this name-attribute to my fetchxml? Can anyone reproduce this problem and has anybody a solution for it?
thx ©a-x-i
Share Improve this question asked Nov 19, 2024 at 7:47 a-x-ia-x-i 3035 silver badges13 bronze badges1 Answer
Reset to default 0My bug was in this line of code:
formContext.getControl("wdps_base_salesorderdetail")).addCustomView(viewId, "product", "Basisprodukt", fetchXml, gridLayout, true);
I passed the wrong logicalName (second parameter). It shoud be "salesorderdetail" rather than "product". The strange thing is the behaviour of Dynamics CRM, because the error-message guides me to the wrong direction and I fot to have a closer look at the code. The other strange thing was, that Dynamics CRM adds an fix parameter to the fetchxml, this is the main-attribute of the entity passed as second parameter. In my case attribute 'name' was the attribute of product.
thx for reading :)
本文标签: fetchxmlcrm 2016 Query Builder Error salesorderdetail customViewStack Overflow
版权声明:本文标题:fetchxml - crm 2016 Query Builder Error salesorderdetail customView - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745577641a2157118.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论