Forum Discussion
Update changes between two SharePoint Lists
Alternatively, you can fulfill this requirement with few steps. Check and let me know if this works for you.
1)Following a trigger'When an item or file is modified'
2)Use the 'Get Item' and Set the Site Address and List Name for Test Ticketing list, In the Filter Query field, enter the condition to match the column in Test Ticketing list with the Ticketing list.
Title eq 'triggerOutputs()?['body/Title']'
3)Add a Condition which verifies whether the length of the retrieved items from SharePoint is greater than zero. If it is, it updates the existing data in the SharePoint list; otherwise, it creates a new item.
length(outputs('Get_items')?['body/value'])
Regards,
NarasimaPerumal Chandramoha
Microsoft MVP
Apps4.Pro - Trusted Office365 T2T Migration partner. Migrate Exchange, SharePoint, Microsoft Teams, Stream, Yammer, Power Platform between tenants.
Product Specialist - http://www.apps4.pro/
- MihiranpMar 13, 2024Copper Contributor
NarasimaPerumal Chandramohan
I have created the flow as above but facing an error once the item creatingthis is my get item filter
this my condition
length(outputs('Get_items')?['body/value'])greater than zero- Mar 16, 2024
The 'Create item' action should not be nested within the apply to each loop. I observed that you've dynamically used values from the 'Get items' action to create the item. However, you should incorporate values directly from the trigger 'When an item or file is modified', since it is the new item.
- MihiranpMar 18, 2024Copper Contributor
Hi,
When updating an item in the main list, a new item is created successfully in the second list if it doesn't already exist. However, if the item already exists in the second list, a new item is created instead of updating the existing itemDuplicate record