问题
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.
- You have to select the appropriate trigger.
- Create your connection (if you have not already) or select an existing connection.
- Then, select the table from the drop-down.
- 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