cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sachintha
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
ChristianAbata
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
ChristianAbata
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

askondo
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
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (37,013)