web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Duplicate Items from G...
Power Automate
Answered

Duplicate Items from Get Items Activity

(0) ShareShare
ReportReport
Posted on by 12

Hello everyone,

 

I have a problem with duplicating lines coming from a list. In short, what I do is to call the items form a list with the "Get items" activity, then with a "Select" I create the table, after that I use "Create CSV" and "Create file" activity. The problem is that when the file is created, duplicate lines appear in it. From what I have observed, the problem is from retrieving items from the "Get items" activity, where in response they are already duplicated. 

 

Anyone with any ideas? Thank you very much😁

MiPP_0-1705418336801.png

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @MiPP 

    According to your description, you want to delete the duplicate in Get Items action.

    First , you can use the Select action to extract the column you need ;

    vyueyunmsft_0-1705456413475.png

    item()?['FieldName']

    Perform operations on data - Azure Logic Apps | Microsoft Learn

     

    Then you can use the union() function to delete the duplicate in an array:

    union(body('Select'),body('Select'))

    For more information, you can refer to :
    Reference guide for expression functions - Azure Logic Apps | Microsoft Learn

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • Verified answer
    MiPP Profile Picture
    12 on at

    For those who have this problem, this solution is a good one.

     

    Although I still don't understand why the "Get items" activity duplicates or triples items from the list, you just have to use the above syntax in "Create CSV table".

     

    Thanks a lot😎

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard