cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amahasheer
New Member

Flow creates duplicate records in Sharepoint

Hello everyone,

 

I was trying to create a flow to automate creation of Sharepoint list items from flagging emails in outlook.

 

It worked well with me through the  below steps:

 

amahasheer_0-1617652480093.png

 

However, I noticed some duplication of records, therefore, I tried to manage this issue by fetching the email conversation ID in each share point item in order to use this field as a validation through standard condition as per below flow:

 

amahasheer_1-1617652725697.png

 

 

Unfortunately, this did solve my issue but make situation worst 😅 as I ended up with more duplications. 

 

amahasheer_3-1617653036887.png

 

 

Could anyone tell me what's did i do in this automation? and what is the best way to prevent such duplications?

 

 

Best regards, 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @amahasheer,

 

You should modify the Power Automate process, to let the logic like If the Issue ID does not exist in the SharePoint list, create an item, or update the corresponding item with the same issue ID. Now you could delete these duplicate items and follow steps as below:

1. Get items to find item with Issue ID equals to conversation ID;

 

IssueID eq '@{triggerOutputs()?['body/conversationId']}'​

 

2. Use length() function check if the return number of items equals to 0:

 

length(outputs('Get_items')?['body/value'])

 

3. If yes, create item, or update item

Screenshot 2021-04-06 101602.jpg

 

Screenshot 2021-04-06 101653.jpg

 

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @amahasheer,

 

You should modify the Power Automate process, to let the logic like If the Issue ID does not exist in the SharePoint list, create an item, or update the corresponding item with the same issue ID. Now you could delete these duplicate items and follow steps as below:

1. Get items to find item with Issue ID equals to conversation ID;

 

IssueID eq '@{triggerOutputs()?['body/conversationId']}'​

 

2. Use length() function check if the return number of items equals to 0:

 

length(outputs('Get_items')?['body/value'])

 

3. If yes, create item, or update item

Screenshot 2021-04-06 101602.jpg

 

Screenshot 2021-04-06 101653.jpg

 

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

stefaniebuysse
New Member

Hi,

 

I have the same problem. But  I can't find the solution.

 

I made a Microsoft forms with a flow to Microsoft list a couple of months ago. 

Since a month we receive our forms answers dubble in our Microsoft list.

 

Can anyone help me to fix it?

 

This is my selfmade flow with the help of youtube. It works very well but since a month we receive duplicates…

stefaniebuysse_0-1658302935830.pngstefaniebuysse_1-1658302973497.png

 

 

stefaniebuysse_2-1658303007643.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,388)