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

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Update and create new record in excel automatically

(0) ShareShare
ReportReport
Posted on by 17
HI 
I have an excel the path is static in onedrive. when user modified the existing record or created new record then the data automatically should be updated on the destination excel which is there in sharePoint. I have created a flow. but it is working for only when the existing records are modified. It is not working for when a new record is created.
I have the same question (0)
  • Inogic Profile Picture
    1,120 Super User 2025 Season 2 on at
    Update and create new record in excel automatically
    Hi,
     
    Try the below step to update and create an Excel record.
    To handle both updating existing records and creating new ones in your flow when working with Excel files, follow these steps:
    Use a Filter Array to compare the unique identifier from the source and destination rows. For example, If the unique column in the source is ID: then below is the expression
    equals(items('Apply_to_each')?['ID'], item()?['ID'])
    To verify the created or updated record for the Filter Array step use the expression:- empty(body('Filter_array'))
    If true (record does not exist), add a new row.
    If false (record exists), update the row.
     
    Hope this helps.
     
    Inogic Professional Services: Power Platform/Dynamics 365 CRM
    An expert technical extension for your techno-functional business needs
    Drop an email at crm@inogic.com 
    Service: https://www.inogic.com/services/ 
    Tips and Tricks: https://www.inogic.com/blog/ 
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,029 Super User 2025 Season 2 on at
    Update and create new record in excel automatically
    Hi,
     
    I think Inogic logic could work by using empty(body('Filter_array')) in condition, or another approach is to use count approach like checking the length of body('Filter_array') like below
     
     
     
     
    Hope this idea helps !
     
    Thanks & Regards,
    Nived N

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard