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 / Need help in stop addi...
Power Automate
Unanswered

Need help in stop adding duplicates in a SharePoint List

(1) ShareShare
ReportReport
Posted on by 78

Hi Team, I have totally 5 columns in a SharePoint List. Few people copy and paste via excel or do a manual entry. 

 

I wanted to trigger an email if column PO NUMBER and LINE NUMBER is already available in the list.

 

Example: if the list has PO NUMBER column is 123456 and line number is 5 and if a user tried to add the same two entries then I wanted to trigger an alert to an email ID. Is this possible?

 

Thanks,

Ram

Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @ram_ESP 

     

    Follow the below steps:

     

    image.png

    image.png

     

    Expression I used under the IF condition is as follows:

    length(body('Get_items')?['value'])
     
    Under the filter query you can see I used PO_x0020_NUMBER, that's because the column name have spaces between. If you don't have spaces then use PONUMBER. Also here I created both columns as numeric. If they are string the use single quotes around it under the filter query.
     
    eg:
     
    image.png
     
     
     
    Thanks
  • ram_ESP Profile Picture
    78 on at

    Hi Team, This is showing an error. 

  • ram_ESP Profile Picture
    78 on at

    ram_ESP_0-1679340258525.png

    This is the error

  • ram_ESP Profile Picture
    78 on at

    ram_ESP_0-1679341027033.png

     

    ram_ESP_1-1679341073259.png

     

     

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @ram_ESP 

     

    I already mentioned in my earlier post. You can't put spaces for the columns under the filter query.

     

    See below

     

    Under the filter query you can see I used PO_x0020_NUMBER, that's because the column name have spaces between. If you don't have spaces then use PONUMBER. Also here I created both columns as numeric. If they are string the use single quotes around it under the filter query.

     

     

    Thanks

  • ram_ESP Profile Picture
    78 on at

    HI, I see the same error with or without codes for the same filter query you used. I have used even and in Uppercase and Lowecase in the filter query and still the same error.

     

    PO Number - Column Type is Single line of Text

    Line Number - Column Type is Single line of Text

     

    ram_ESP_0-1679397216934.png

     

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @ram_ESP 

     

    Again if you look carefully the filter query you used capital case AND. This should be small case and. See my earlier thread.

     

    Thanks

  • ram_ESP Profile Picture
    78 on at

    Found the issue with column expression. They have used Title as PO Number column name. I changed the expression.

  • ram_ESP Profile Picture
    78 on at

    I see another problem now. the PO Number and Line Number values added to the list and I am not getting an email.

     

    ram_ESP_5-1679400007607.png

     

    I have tried to add the existing column value and it is not triggering an email.

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @ram_ESP 

     

    Could you please post a screenshot of your flow? 

     

    Thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard