Apresentamos nesse vídeo como enviar email automaticamente ao inserir registro no banco de dados SQL do Azure utilizando o Power Automate.
1. Create Automated Cloud Flow:
2. Select SQL SERVER AUTHENTICATION TYPE:
3. Create Flow-Compatible Table (CREATE TABLE, IDENTITY, ROWVERSION
CREATE TABLE Example ( ID INT PRIMARY KEY IDENTITY, Name: NVARCHAR(50), Versao ROWVERSION );
4. Add Email Send Step (SEND MAIL, OFFICE 365 OUTLOOK):
5. Insert Record and Execute Trigger (INSERT INTO, TRIGGER
INSERT INTO Example (Name) VALUES ('New Record'); -- The trigger will be triggered after insertion
6. Set email text to HTML format (VARIABLE):
These actions enable the automation of processes that involve interactions between Power Automate and Azure SQL Database, providing a flexible and powerful way to create automated workflows.
Data Scientist and Consultant for Digital and Analytics Solutions
@fabioms