管道运行-RunEnd按工厂顺序查询不起作用

问题描述

您好,我正在使用管道运行-按工厂查询获取最新的pipleline RunEnd(datetime)。 我的请求的内容如下所示。

{
 "lastUpdatedAfter":"2020-07-05","lastUpdatedBefore":"2020-11-16","Orderby":[{"RunEnd"}],"filters":[{"operand":"PipelineName","operator":"Equals","values":["abc"]}]
}

当我添加orderby时,pipelinName的筛选器不起作用(否则筛选器正在工作),并且RunEnd认按降序排序,但我需要按升序排列,并且在Microsoft artical中没有任何语法。

所以我需要

  1. 通过添加顺序语法,还可以对piplelineName使用过滤器。

解决方法

I found the answer. 
{
  "lastUpdatedAfter":"@{adddays(formatDateTime(utcnow(),'yyyy-MM-dd'),-60)}","lastUpdatedBefore":"@{formatDateTime(utcnow(),'yyyy-MM-dd')}","filters":[
             {"operand":"PipelineName","operator":"Equals","values": 
              ["insighthealth_npi_at_move_to_bronze"]
             },],"orderBy":[{"orderBy":"RunEnd","order":"DESC"}]
 }