cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Sending an EMail with details when SQL Server record is updated

I have a PowerApps canvas app that uses a SQL Server Azure database as the data source. In there I have a table TICKETS like this:

 

TICKETS (TicketId, Title, Status, CreatedBy)

 

CreatedBy is an Email address.

 

I want to create a flow where, when the TICKETS table is updated (say, status is changed), it should send an email to the CreatedBy, with the TicketId, Title, and the new Status in the email body. I see that there's a SQL Server 'When an item is modified (V2)' option that is triggered when a record is updated, but I don't understand how to retrieve the updated record in order to pull the relevant information.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

hi @Sachintha  to get data when a record is updated you need to add to your SQL server an column type Timestamp..

 

See

https://powerusers.microsoft.com/t5/Connecting-To-Data/When-an-Item-is-Modified-in-SQL-flow-is-not-w...

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Timestamp-and-User-Id-record-upon-submit/td-...

 

 

 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

3 REPLIES 3
Super User II
Super User II

hi @Sachintha  to get data when a record is updated you need to add to your SQL server an column type Timestamp..

 

See

https://powerusers.microsoft.com/t5/Connecting-To-Data/When-an-Item-is-Modified-in-SQL-flow-is-not-w...

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Timestamp-and-User-Id-record-upon-submit/td-...

 

 

 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

Microsoft
Microsoft

@ChristianAbata 

Thank you for your responses to the forum. Your answers keep the forum active. Thank you for your continued support.

my pleasure @askondo  😉 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (7,983)