Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

when new email arrives subject values duplicates for related list item

(1) ShareShare
ReportReport
Posted on by 2,245

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

 

 

  • Veblitz Profile Picture
    2,245 on at
    Re: when new email arrives subject values duplicates for related list item

    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

  • SudeepGhatakNZ Profile Picture
    14,376 Most Valuable Professional on at
    Re: when new email arrives subject values duplicates for related list item

    @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,245 on at
    Re: when new email arrives subject values duplicates for related list item

    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,376 Most Valuable Professional on at
    Re: when new email arrives subject values duplicates for related list item

    @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.

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492