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?
Thanks, exactly what i was looking for!
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:
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"
}
Here is result:
Best Regards
Cheng Feng