cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Memorable Member
Memorable Member

Tips: Everyday, Post a data of SQL Server to Microsoft Teams

I want to share how to post a data of SQL Server to Microsoft Teams.

 

Summary:

Everyday, Get a data from SQL Server, and Post the data to Microsoft Teams.

 

Use Scenario:

Check a data of SQL Server at Microsoft Teams

 

Flow overview:

Trigger: Schedule - Recurrence

Action: SQL Server - Execute a SQL query

Action: Apply to each

- Action:Microsoft Teams - Post message

2018-08-16 (2).png

 

Trigger: Schedule - Recurrence

- Interval is 1

- Frequency is Day

2018-08-16 (3).png

 

Action: SQL Server - Execute a SQL query

- query is Select statement

- like: Select COUNT(*) as ResultCount from Table1

 

Action: Apply to each

- 'Select an output from previous steps' is 'ResultSet Table1' on Dynamic content - 'Execute a SQL query'

 

Action: Microsoft Teams - Post message

- Team ID is <your team>

- Channel ID is <your channel>

Click <see more> in 'Dynamic content' - 'Execute a SQL query', and after click, appear 'ResultCount' 

- Message is <ResultCount>

2018-08-16 (4).png

 

that all.

I'm using this flow to check a customer's Azure SQL Database, everyday.

 

Regards,

Yoshihiro Kawabata

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @yoshihirok,

 

Thanks for sharing. Your tips will be very helpful to customers who have the same request.

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Hi @yoshihirok,

 

Thanks for sharing. Your tips will be very helpful to customers who have the same request.

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted

Hi @v-yamao-msft

 

Yes, this Tips start with a customer's scenario

 

Regards,
Yoshihiro Kawabata

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (9,723)