简体   繁体   English

Azure-logicApps-将实体插入表中

[英]Azure-logicApps-INSERTING ENTITY INTO A TABLE

i have created a HTTP post request using logic apps and inserting that in a table.我使用逻辑应用程序创建了一个 HTTP 发布请求并将其插入表中。 so i need the row key to be 1,2, and 3 so on.所以我需要行键为 1,2 和 3,依此类推。 when i insert first entity it Should be 1 and for next entity it should 2 so on.当我插入第一个实体时,它应该是 1,对于下一个实体,它应该是 2,依此类推。 i have tried Guid no solution.我试过Guid没有解决方案。 please if someone knows share the answer.如果有人知道,请分享答案。

在此处输入图像描述

If you really need to avoid guids, you have to use other ways to implement auto-increment, you could create a queue or a table entity with your next ids to use.如果您确实需要避免使用 guid,则必须使用其他方式来实现自动增量,您可以使用下一个要使用的 id 创建一个队列或表实体。

In the logic app before do insert action, read the queue or entity, increment and save it then insert with the value you read.在执行插入操作之前的逻辑应用中,读取队列或实体,递增并保存它,然后插入您读取的值。

The below is my test logic app, use a itemid table to store the auto-increment id and insert the id as rowkey to destination table test .下面是我的测试逻辑应用程序,使用 itemid 表来存储自增 id 并将 id 作为 rowkey 插入到目标表test Then replace the entity in the itemid table with the new id value.然后将itemid表中的实体替换为新的 id 值。

在此处输入图像描述

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM