Skip to main content

Notifications

Power Automate - Using Connectors
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?

  • warryvanarkel Profile Picture
    warryvanarkel 4 on at
    Re: Insert Item in multiple sharepoint lists depending on input input parameter

    Thanks, exactly what i was looking for!

  • Verified answer
    Re: Insert Item in multiple sharepoint lists depending on input input parameter

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics