Move list items from one SharePoint site to another SharePoint site with Azure Logic Apps

Cem 110 Reputation points
2023-07-25T18:33:21.8033333+00:00

I want to move new created list items from one SharePoint site to another in SharePoint Online.

I actually have this configuration setup:

  • list "list-a" in site "site-a"
  • list "list-b" in site "site-b"

"list-a" and "list-b" have nearly the same amount of columns with the only difference, that "list-a" has one more column field from type dropdown . When a user creates a new list item in "list-a" and takes a specific choice from this dropdown menu, then the list item has to be moved from "site-a" to "site-b". The list item should not be created twice in "site-a" and "site-b", it just should be moved from "site-a" to "site-b" with all the list column data (title etc., not only the attachments).

How can I best achieve this? Thanks in advance for any assistance.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,543 questions
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2023-07-26T07:36:00.01+00:00

    @Cem Thanks for reaching out. You can leverage the SharePoint connector for your requirement. There is no out of box feature that when user select a specific choice then it should create the item in different list. But the item will be first created on your list a then when the logic app triggers your workflow will check the specific choice based on which you want to create the item in list b and then delete the list a item for the same record.

    Logic App workflow:

    When an item is created (list a in site a configuration) --> Condition (to validate based on choose you can use the fields from your trigger) --> Create item (if true/false base on your condition create a new item in list b in site b that you have configured in connector) --> Delete item (remove the item based id of the trigger condition for list a site a that you configure in connector)

    Feel free to get back to me if you need assistance.

    Please "Accept Answer" if the answer is helpful so that it can help others in the community.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.