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 Automate / Insert Item in multipl...
Power Automate
Answered

Insert Item in multiple sharepoint lists depending on input input parameter

(0) ShareShare
ReportReport
Posted on by 4

Ik have multiple sharepoint list with the same definition (because of security reasons). Depending on a input parameter I want to insert the item in one of the lists. The standard sharepoint insert item does not let me add metadata when the listname is not explicitly mentioned.

For now I use a switch to select each library but this is difficult to maintain. What are my options?

Categories:
I have the same question (0)
  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @warryvanarkel ,

    Do you want flow to update the corresponding sharepoint list based on the value you enter?

    Until then, could you please tell me if the columns of all sharepoint lists are the same except for the name?

    if yes,

    Here is test for your reference:

    Here are share point list:

    vchengfenmsft_0-1668491978987.png

    vchengfenmsft_1-1668491984067.png

    Here is flow:

    Url:_api/web/lists/getbytitle('yourlistName}')/items

    Headers: 

    {

          "content-type": "application/json;odata=verbose"

    }

    Body:

    {
    "__metadata": {
    "type": "SP.Data.yourlistNameListItem"
    },
    "Title": "Demo Task1",
    "Name":"11"
    }

    vchengfenmsft_2-1668492027031.png

    Here is result:

    vchengfenmsft_3-1668492041833.pngvchengfenmsft_4-1668492062677.png

     

     

    Best Regards

    Cheng Feng

  • warryvanarkel Profile Picture
    4 on at

    Thanks, exactly what i was looking for!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard