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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / when new email arrives...
Power Automate
Unanswered

when new email arrives subject values duplicates for related list item

(1) ShareShare
ReportReport
Posted on by 2,249

When new email arrives im extracting subject values and storing it in the list item 

Incoming email sample

Subject:USA,Client9

So if they are using same subject values but different attachments then it should update document library for the new attachment but at list item level it should not create new item as per below, so how to prevent duplicity in this context.

Veblitz_2-1720979172410.png

 

Flow details

Veblitz_1-1720979111840.png

Veblitz_5-1720979258898.png

How to prevent duplicates in the list item and in my case if the subject has same values then how to restrict those items 

Veblitz_7-1720979366485.png

set country variable expression:
last(split(outputs('Compose')[0],': '))
set customer variable expression:
last(split(outputs('Compose')[1],': '))

Veblitz_6-1720979314228.png

 

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Veblitz 

    You could query the list first using Get items with a filter

    customer eq 'variables('Customer')' and country eq 'variables('Country')'

    If the length of the action above > 0, employ the update , otherwise use the Add action.

     

  • Veblitz Profile Picture
    2,249 on at

    I tried the same but no luck,its not creating new record for new items as well

     

    Veblitz_0-1721016871920.png

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

    Veblitz_1-1721016889272.png

     

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Veblitz 

    I don't see any loops in your flow, maybe your flow is getting triggered more than once. Can you check?

     

  • Veblitz Profile Picture
    2,249 on at

    Apologies and please help me with more details of what should i check in the context of flow getting triggered more than once and what loop i need to put to check the same

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard