We'll get to know the techniques
:
Create Manually Executed Flow (Instant Cloud Flow):
- Access Power Automate.
- Select "Create" and choose "Automated Flow (Snapshot)".
- Configure the parameters and steps that will be performed when the flow is manually triggered.
Add
Power Query Data Transformation step:
- Add a data transformation step using the "SQL Server" connector.
- Select the Transform Data action, then choose the table or data you want to transform.
Choose the data to transform
(Choose Data, Database, Table):
- Choose the Azure SQL Database and the specific table you want to transform.
Applied Steps, Query Folding, and SQL Scripting:
- In Power Query, you can apply various transformations and query folds to manipulate the data.
- Example of text to JSON transformation:
Let
Source = Sql.Databases("sua_conexao_sql"),
Database = Source{[Name="sua_base_de_dados"]}[Database],
Table = Database{[Name="sua_tabela"]}[Table],
ColumnTransform = Table.TransformColumns(Table, {{"coluna_texto", Json.FromText}}),
In fashion
TransformColumn
Convert Text to JSON format for records:
- Use the Power Query transformation to convert text to JSON format for records.
Diagram View:
- In Power Automate, you can view the step diagram to understand the logic of your flow.
Insert data into Azure SQL Database (SQL Server, Insert Row
, Dynamic Content):
- Add a "SQL Server" step and choose the "Insert Row" action.
- Map the table columns with the dynamic content from the previous step.
Query result in Tabular format (
SQL Server, Select):
- Add another "SQL Server" step and choose the "Select" action.
- Configure the SQL query to get the results you want.
Keep in mind that the construction of the flow can vary depending on the complexity of the data and the transformations you want to apply. The examples provided are simplified and may need to be adjusted as needed.