cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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 III
Super User III

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 III
Super User III

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

Highlighted
Microsoft
Microsoft

@ChristianAbata 

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

Highlighted

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
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 (13,142)