Trigger Azure Function by inserting (adding) new row into table, SQL Server Database

此生再无相见时 提交于 2020-01-24 09:34:06

问题


Is it possible to trigger Azure Function by inserting new row into table (using SQL Server Database). Or, is it possible create Logic App to inform us, in case of new record has been added into table, SQL Server database (e.g once the new record is added to send new info email)


回答1:


You can use Azure Event Grid as stated on this article "Extend existing workflows by triggering a Logic App once there is a new record in your database".

You can also create a Logic App to poll the table and add an action item to call the Azure function or a RESTful call.

Hope this helps.




回答2:


In case someone else has the same question, If you are using SQL Azure, you can use the SQL Connector trigger for Logic Apps

With this connector trigger, you can kick off your Logic Apps whenever a row is inserted or modified in a SQL Azure Database table.

  1. You have to select the appropriate trigger.
  2. Create your connection (if you have not already) or select an existing connection.
  3. Then, select the table from the drop-down.
  4. You can also choose to further limit the rows returned by specifying a filter.

Currently the connector has some limitations

  • It does not work for on-premises SQL Server
  • Table must have an IDENTITY column for the new row trigger
  • Table must have a ROWVERSION (a.k.a. TIMESTAMP) column for the modified row trigger

Obtained from here:
https://flow.microsoft.com/en-us/blog/introducing-triggers-in-the-sql-connector/



来源:https://stackoverflow.com/questions/46115693/trigger-azure-function-by-inserting-adding-new-row-into-table-sql-server-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!