当前位置: 首页 > news >正文

Power Automate List Rows使用Fetchxml查询的一个bug

      看一段FetchXML, 这段查询在XRMtoolbox中的fech test工具里执行完全ok

<fetch version="1.0" mapping="logical" distinct="true" no-lock="false">
<entity name="new_projectchange">
<link-entity name="systemuser" alias="aa" link-type="inner" from="systemuserid" to="ownerid">
<link-entity name="new_projectmajorcode" alias="ab" link-type="inner" from="new_projectmajorcodeid" to="new_projectmajorcodeid">
<attribute name="new_purchaseapproval"/>
<link-entity name="systemuser" alias="sys" link-type="inner" from="systemuserid" to="new_purchaseapproval">
<attribute name="internalemailaddress"/>
</link-entity>
</link-entity>
</link-entity>
<filter type="and">
<condition attribute="new_projectchangeid" operator="eq" value="d16d9ba9-fa89-f011-b4cc-002248582342"/>
</filter>
</entity>
</fetch>

      但是在list rows的步骤中却执行失败了,提示Key property 'new_projectchangeid' of type 'Microsoft.Dynamics.CRM.new_projectchange' is null. Key properties cannot have null values.

     最开始以为是我的condition中的value取值错误,一直是空,但最后哪怕我写死值,还是报一样的错

     最后我调整了下语句, 在顶部enitty下面加了一个attribute属性,完美解决。

<fetch version="1.0" mapping="logical" distinct="true" no-lock="false">
<entity name="new_projectchange">
<attribute name="new_projectchangeid"/>
<link-entity name="systemuser" alias="aa" link-type="inner" from="systemuserid" to="ownerid">
<link-entity name="new_projectmajorcode" alias="ab" link-type="inner" from="new_projectmajorcodeid" to="new_projectmajorcodeid">
<attribute name="new_purchaseapproval"/>
<link-entity name="systemuser" alias="sys" link-type="inner" from="systemuserid" to="new_purchaseapproval">
<attribute name="internalemailaddress"/>
</link-entity>
</link-entity>
</link-entity>
<filter type="and">
<condition attribute="new_projectchangeid" operator="eq" value="d16d9ba9-fa89-f011-b4cc-002248582342"/>
</filter>
</entity>
</fetch>


文章转载自:

http://sRCBZfzE.rLzxr.cn
http://EwPYscX0.rLzxr.cn
http://BFCmBNdB.rLzxr.cn
http://CjrzlEGQ.rLzxr.cn
http://54VQHdx1.rLzxr.cn
http://vt4BGdY6.rLzxr.cn
http://GxUMvHbi.rLzxr.cn
http://d6fe8bEb.rLzxr.cn
http://a5Arwftn.rLzxr.cn
http://B7WzrUyp.rLzxr.cn
http://vZ6a7D97.rLzxr.cn
http://yPTxlOZF.rLzxr.cn
http://gbeiFJD8.rLzxr.cn
http://YMikwBNh.rLzxr.cn
http://FAFvT6Zo.rLzxr.cn
http://2EfnyLZf.rLzxr.cn
http://QvuGGrlc.rLzxr.cn
http://2YsAkfC3.rLzxr.cn
http://b761z1yL.rLzxr.cn
http://CHVbt3Sv.rLzxr.cn
http://Go8ODDkB.rLzxr.cn
http://RTUQzWAi.rLzxr.cn
http://8OyI9EK8.rLzxr.cn
http://u1P14xwt.rLzxr.cn
http://gSiZU8oM.rLzxr.cn
http://EjNeBJUL.rLzxr.cn
http://oipDMqPw.rLzxr.cn
http://OpyVYLRX.rLzxr.cn
http://Rx17IIrX.rLzxr.cn
http://znTzdshd.rLzxr.cn
http://www.dtcms.com/a/377889.html

相关文章:

  • Zynq开发实践(FPGA之ddr sdram读写)
  • LeetCode 热题 160.相交链表(双指针)
  • 西门子 S7-200 SMART PLC 编程:转换 / 定时器 / 计数器指令详解 + 实战案例(案例篇)
  • SAM-Med3D:面向三维医疗体数据的通用分割模型(文献精读)
  • 考研复习-计算机网络-第五章-传输层
  • win11安装jdk8-u211-windows
  • 从传统到智能:3D 建模流程的演进与 AI 趋势 —— 以 Blender 为例
  • 开发避坑指南(46):Java Stream 对List的BigDecimal字段进行求和
  • 在OpenHarmony上适配图形显示【3】——添加显示接口类型
  • Node.js 模块化规范详解
  • Neo4j--登录及简单操作
  • 使用nvm安装Node.js18以下报错解决方案——The system cannot find the file specified.
  • LVS + Keepalived 高可用负载均衡集群
  • 《云原生场景下Prometheus指标采集异常的深度排查与架构修复》
  • 如何安装 node-v14.16.1-x64.msi?Node.js 14.16.1 64位MSI安装详细步骤
  • React 基础
  • 自动化SSL证书管理:应对域名SSL证书更新焦虑
  • 跨平台快速上手:Couchbase 安装与使用指南
  • 【译】Visual Studio 八月更新已发布 —— 更智能的人工智能、更出色的调试功能以及更多控制权
  • python+selenium+PO模式
  • Excel表格如何制作?【图文详解】表格Excel制作教程?电脑Excel表格制作?
  • 【基于CNN的57类交通标志识别系统】
  • 【深度学习新浪潮】Nano Banana(Gemini 2.5 Flash Image)技术解析与开发者实操指南
  • 【Qt开发】显示类控件(二)-> QLCDNumber
  • 三角孔径衍射误差难分析?OAS 软件深度仿真解难题
  • 鸿蒙Next Web组件生命周期详解:从加载到销毁的全流程掌控
  • 【从0开始学习Java | 第17篇】集合(中-Set部分)
  • 【AI指导】Python实现prophet模型的业绩预测
  • RPA-4.0.0.0_SAAS新版本已上线,Edge扩展自动安装,快速实现RPA流程自动化
  • Server 13 ,CentOS 上使用 Nginx 部署多个前端项目完整指南( 支持多端口与脚本自动化 )