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 / How to update an exist...
Power Automate
Unanswered

How to update an existing item in SP List from another SP List ?

(0) ShareShare
ReportReport
Posted on by 86

Hello,

 

I have two SP List with the same structure and I want to update both of my SP List when an item is modified in SP List 1 or in SP List 2.

But I don't have any column ID in this SP List, because my data is identified by 3 criteria : Structure, City and Date.

 

So, how can I do to specify that my "ID = Structure + City + Date" ?

 

Thank you for your help 🙂 

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @nliu 

    You can use the SharePoint Get Items action using a Filter Query to update those items found depending on the condition:

    2020-03-06 10_09_42-Create your flow _ Power Automate.png

     

    1) When an item is updated in List 1

    2) Find the items in the List 2 that have the same structure, city and date

    3) Update the items that match the condition (it should be only one).

    Hope it helps!

    Ferran

  • sudharsan1985 Profile Picture
    1,325 on at

    Hi @fchopo 

    We have to check the list name and based on the listname we have to update the other list. So its better to use the condition action and check the listname, if yes update the list1 with the list2 details else update the list2 with the list1 details.

     

    Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue

    -Sudharsan K...

  • nliu Profile Picture
    86 on at

    @fchopo  thanks for helping,

     

    I tried what you did but still doesn't work and I don't understand why...

     

     

    FLow.jpg

  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @nliu 

    Please, remove the white spaces in the name of the columns when writing the filter expression, and use quote to surround values. Have a look at this example: PériodedeRéalisation eq '2020-03-05'

    Hope it helps!

    Ferran

  • nliu Profile Picture
    86 on at

    @fchopo 

     

     

    Still doesn't work, 

    Flow failed.jpg

     

    But it creates a new row in my SP List 1 ... 

     

    Test liste.jpg

  • nliu Profile Picture
    86 on at

    @sudharsan1985  what do you mean by check the list name ?

  • sudharsan1985 Profile Picture
    1,325 on at

    Hi @nliu 

    In your filters you had included the column name with '/' and I don't think so SharePoint will have an internal name with '/'. You told that updating one list should update the other. How would you know which list item is updated, so I asked you to check the list name and update the other list.

     

    Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue

    -Sudharsan K...

  • fchopo Profile Picture
    8,003 Moderator on at

    @nliu It doesn't work because of the ' character in the expression (structuredel'enduitsuperficiel)

    Can you try to rename your columns, not using special characters like ´ ` ' ?

  • nliu Profile Picture
    86 on at

    @fchopo 

    Hey I tried to rename my columns like this "Structure", "Ville" and "Date" but it says that the column "Structure" doesn't exist. That it might be deleted by an other user  :

     

    {
    "status": 400,
    "message": "La colonne « Structure Â» n’existe pas. Elle a peut-être été supprimée par un autre utilisateur.\r\nclientRequestId: 53a3027b-e50e-48f7-842b-9bea0f9baa10\r\nserviceRequestId: 53a3027b-e50e-48f7-842b-9bea0f9baa10"
    }
     
    Listes.jpg

     

     
    Thank you for helping me

     

     

  • sudharsan1985 Profile Picture
    1,325 on at

    Hi @nliu 

    Try to use the internal name of the column in the filters. Though you renamed the column, only the display name will get changed and not the internal name. Navigate to the List settings page and click on the column, you can see the internal name on the end of the URL in the address bar.

     

    Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue

    -Sudharsan K...

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard