web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update a SQL database ...
Power Automate
Unanswered

Update a SQL database record from email response

(0) ShareShare
ReportReport
Posted on by 114

I have a couple of flows that will send out emails for approvals, but I am running into a slight problem. The flow will send the email, with the response, but I need to update the corresponding SQL record with the response. Is this possible? The initiating app is a PowerApp, and the flow is set to run after the patch statement is executed.

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi @AthenaDepper,

     

    How is your flow triggered?

    Please try to use the action Update row to update an existing row in a table. Note, a primary key is required when using Update row action.

    If your flow is triggered by a PowerApps button, you could specify the required Row id and Id from PowerApps, then update the email response to the table.

    1.PNG

    If you are using SQL Azure Database table, you could consider using triggers in the SQL connector, so that your flow could be triggered when an item is created, then update the corresponding item with the email response.

    Please take a try with it on your side.

    The following docs for your reference:

    Introducing triggers in the SQL Connector

    SQL Server

     

    Best regards,

    Mabel

  • Verified answer
    AthenaDepper Profile Picture
    114 on at
    So I was trying to do this, and it wasn't working last night, but with some playing, I was able to finally get it to work. What I did was pass it the last row id number + 1, since this number is auto-assigned. My biggest issue was to do this for multiple records at once, but I was able to put this into my ForAll loop. Thank you for your help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard