Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

WHY update item replaced previous record

(0) ShareShare
ReportReport
Posted on by

Need your kindness Help here,

 

Im working on ms flow for the Multiple user can trigger button clock in and clock out. The user which trigger the button will update the item in SPlist. however i find something wrong while trigger for Out which the item for previous record will be replaced. I just want it replaced on latest record / follow user record. My flow as below:

 

flow.PNG

  • Community Power Platform Member Profile Picture
    on at
    Re: WHY update item replaced previous record

    @ScottShearer  ??

  • Community Power Platform Member Profile Picture
    on at
    Re: WHY update item replaced previous record

    hi @ScottShearer ,

     

    ive try your solution on this. but no output in sharepoint. can u advise on this ? Thanks for your feedback

    Capture1.PNG

     

     

     

    Capture2.PNG

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: WHY update item replaced previous record

    @Anonymous 

    I believe you can get this working if you add an OData filter to your existing configuration.  You need to retrieve only the records for the employee who is ckecking out.

     

    The filter will look something like this:

    EmployeeClaims eq 'Email of the person who clicked the button from Dynamic properties'

     

    You'll need the single quotes.

    OData filters usually use a columns internal name.  So, create a new flow and use get items to retireve items from the attendance list.  Run the flow and ckeck to output of the Get items action.  You'll need to refer to the Employee claims column in exactly the same way as it shouws in the output.

    You'll still want Order By ID Desc and Top count of 1

     

     

     

     

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: WHY update item replaced previous record

    hi @v-bacao-msft 

     

    I follow guide as u mentioned earlier, i put employee name as my Order field and Top count =1. The problem is when

    Example Scenario:

    Employee A clock in and Out - success update in sharepoint List ( IN and OUT column)

    Employee B Clock in - Success update clock IN

    Employee B Clock out - It will replaced clock out Employee A also. 

     

    I wondering there is some function or method ive doing this wrong. please help and thanks for your kind reply

    Capture.PNG

     

     

  • v-bacao-msft Profile Picture
    on at
    Re: WHY update item replaced previous record

    Hi @Anonymous ,

     

    If you want to update the latest record, you could refer to the configuration below.

    Use Order by and Top Count to get the latest record, then update the item.

    33.PNG

     

    Best Regards,

  • Willemijn Profile Picture
    214 on at
    Re: WHY update item replaced previous record

    Hi, 

     

    With the action get items, you will get all items of that list. If you then choose to apply to each to update the item, you will update the item x times for all items in the list. My advise is to first filter the list of the get items by date (today) and then check the user (I didn't figure out how to do this in the Odata query so My get items looks like this: 

     

    Datum is the fieldname of the date field, and the formula is this: 

    Datum eq '@{formatDateTime(utcNow(),'yyyy-MM-dd')}'

     

    2019-07-15 15_06_59-Edit your flow _ Microsoft Flow.png

     

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow