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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (53,607)