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

Notifications

Announcements

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:
I have the same question (0)
  • abm abm Profile Picture
    32,865 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
    32,865 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
    32,865 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
    32,865 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard