筛选 Dataverse 表列中存在列值的数组

发布于 2025-01-17 08:10:52 字数 404 浏览 2 评论 0原文

我有一个包含数千行的数组,其中一个元素为“订单号”。我想过滤 Dataverse 表列中不存在该订单号的数组。

我尝试了很多方法,总是从 Dataverse 表上的“列出行”操作开始。从那里开始,我觉得要做的就是执行一个 Select 操作,将 OrderNumber 从列表行映射到 OrderNumber。我相信这会创建一个订单号数组。

我不确定我是否走在正确的轨道上,但是如何有效地过滤 Dataverse 表中不存在订单号的原始数组?

编辑:这是我当前过滤器数组的输出中的示例项目: 输入图片此处描述

I have an array of thousands of rows with an element of "Order Number." I want to filter that array where that Order Number does not exist in a Dataverse table column.

I've tried a number of things, always starting with a List Rows action on the Dataverse table. From there, I feel like the thing to do is to do a Select action where I map OrderNumber to OrderNumber from the List Rows. I believe that creates an array of the order numbers.

I'm not sure if I'm on the right track, but how can I efficiently filter the original array where the Order Number does not exist in the Dataverse table?

Edit: Here's a sample item in the output of my current filter array:
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一抹苦笑 2025-01-24 08:10:52

如果您能够使用 javascript,这可能会有所帮助。

// where output equals your data
const records = JSON.parse( output );

// we will create new array of filtered data
let newData = [];

// loop array searching for matching criteria
for (let n = 0; n < records.length; n++; ) {

   // replace 123456 with search criteria
   if(records[n]["Order Number"] != "123456") {
         newData.push(records[n]);
   }

   // once you reach the end
   if(n == records.length-1) {
      
      // stringify object (may not be required)
      let fileteredData = JSON.stringify(newData);

      /* open filteredData with program */
   }
}

This might help if you are able to use javascript.

// where output equals your data
const records = JSON.parse( output );

// we will create new array of filtered data
let newData = [];

// loop array searching for matching criteria
for (let n = 0; n < records.length; n++; ) {

   // replace 123456 with search criteria
   if(records[n]["Order Number"] != "123456") {
         newData.push(records[n]);
   }

   // once you reach the end
   if(n == records.length-1) {
      
      // stringify object (may not be required)
      let fileteredData = JSON.stringify(newData);

      /* open filteredData with program */
   }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文