如何将查询的结果塞入变量中并在逻辑应用中使用另一个查询

发布于 2025-02-05 08:37:41 字数 391 浏览 3 评论 0原文

我没有经常使用逻辑应用程序,我的老板很难将一个查询的结果塞入变量中,然后在另一个查询中使用该变量。

基本上,他要做的就是从第一个查询中获取ID返回的列表,并在第二个查询中使用该列表。

这是他的逻辑应用的样子:

您可以在第二个查询的末尾查看他想检查ID是否在列表中。他已经出去了一天,我不确定该变量是否甚至成功地收到了ID的列表,但是您可以从图片中看到任何需要纠正的东西?还是他可以尝试的任何建议,以实现他要实现的目标?

I haven't used logic apps a lot, my boss is having trouble stuffing the results of one query into a variable and then using that variable in another query.

Basically, all he wants to do is get a list of of Id's returned from the first query and use that list in the second.

Here is a picture of what his logic app looks like:
enter image description here

You can see at the end of the second query he wants to check if the id is in the list or not. He's out for the day and I'm not sure if that variable is even receiving the list of id's successfully, but is there anything from the picture that you can tell that needs to be corrected? Or any suggestions that he could try, to achieve what he's trying to achieve?

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

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

发布评论

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

评论(1

旧夏天 2025-02-12 08:37:41

根据图像,没有数据存储在变量appid中。在查询中,您可以直接使用c.EntityId。以下查询以检查c.entityid中是否存在c.ID。

SELECT c.Vechicle.GrossVechicleWeight as GVW, c.EntityId as ApplicationId FROM c where c.RiskTypeId = 1 and c.Discriminator = 'RiskEntity' and c.EntityTypeId = 4500 and c.id in (c.EntityId)

考虑如果您要将C. c.的态度存储到acpid变量中,则可以查询从C中选择C.EntityID,然后使用附加到数组变量>将结果存储到变量中。通过仅使用解析JSON提取C.EntityID来操作。

这是我的逻辑应用

“在此处输入图像描述”

”在此处输入图像描述”

结果:

“在此处输入图像说明”

According to the image, no data is getting stored into the variable AppId. While in the query you can just directly use c.EntityId. Below query to check if c.id is present in c.EntityId.

SELECT c.Vechicle.GrossVechicleWeight as GVW, c.EntityId as ApplicationId FROM c where c.RiskTypeId = 1 and c.Discriminator = 'RiskEntity' and c.EntityTypeId = 4500 and c.id in (c.EntityId)

Consider if you are trying to store c.Entity into AppId variable then you can Query SELECT c.EntityId FROM c and then store the result into the variable using Append to array variable action by extracting only c.EntityId using Parse JSON.

Here is my logic app

enter image description here

enter image description here

RESULT:

enter image description here

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