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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to get only modifi...
Power Apps
Answered

How to get only modified rows from SQL Server "When an item is modified (V2)"

(0) ShareShare
ReportReport
Posted on by 6

Hi, 

I am using "When an item is modified (V2)" and when an item is modified in SQL table, I am getting all rows from the table as output, but I wanted to get only the modified rows from the table.

How can I do that?

 

Thanks in Advance 

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @osama571 ,

    Actually, the trigger "When an item is modified (V2)" returns only the modified item, is impossible that this trigger to return all table rows . Can you put a screenshot of your flow to understand better what you are trying to do ?

  • osama571 Profile Picture
    6 on at

    Hi @gabibalaban,

    at start I am sending SQL query to update the rows in table (its should update only if the row is different)

    and next step I should get the rows which are modified, but I am getting all the rows from the table which are 35 rows.

    Here is my SQL code 

    '''

    update Table_name1 set Table_name1.[online]=a.Newstate from
    (
    select Table_name_View.[online] as Newstate from Table_name1
    join Table_name_View on
    Table_name1.Customer=Table_name_View.Customer and
    Table_name1.name=Table_name_View.name
    where Table_name1.[online]!=Table_name_View.[online]) a

    '''

     

    Unbenannt.PNG
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    There is no action in power automate called “When an item is modified”, only triggers. Most probably you renamed an existing “Get items” action.

    Please check the outputs of the “Execute the SQL query” action to see if the server returns something useful, like primary key of the affected rows.

  • osama571 Profile Picture
    6 on at

    I didn't know that the "When an item is modified (V2)" return only the modified rows. After you told me that I just checked my SQL Server and I found a mistake in it. Where every time the rows getting replace even if data are still the same and I just fixed it now and I am getting now the expected output.

    my Problem is solved Thank you 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard