Logic App 用于检查 Azure 表存储中是否包含特定值的行。

huangapple go评论70阅读模式
英文:

Logic app to check if a row in azure table storage contains specific value

问题

要求

创建一个逻辑应用以从表中读取数据。如果某行的某列“region”包含特定值,则该行必须插入到另一个表中。

问题

我可以使用“获取实体”操作从存储表中获取所有实体。我放置了一个“对每个”循环来迭代所有实体。但是,在“条件”操作中,我无法检查每条记录的特定列值。

英文:

Requirement

Create a logic app to read data from a table. If a row contains a particular value for a column "region", then that row must be inserted in to another table.

Issue

I am able to get all the entities from storage table using "Get Entities" action. I placed a for each to iterate through all entities. However, in "Condition" action, i am unable to check for particular column value for each record.

Logic App 用于检查 Azure 表存储中是否包含特定值的行。

答案1

得分: 3

你可以在“获取实体”操作下添加一个参数(“选择查询”),然后在其中输入“region”。然后使用以下表达式获取“region”列的值:

items('For_each')['region']
英文:

You can add a parameter("Select Query") under the "Get entities" action and type "region" in it.(please refer to the two screenshots below)

Logic App 用于检查 Azure 表存储中是否包含特定值的行。

Logic App 用于检查 Azure 表存储中是否包含特定值的行。

Then use the expression below to get the value of "region" column:

items('For_each')?['region']

Logic App 用于检查 Azure 表存储中是否包含特定值的行。

huangapple
  • 本文由 发表于 2020年1月6日 17:21:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/59609471.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定