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 Apps / Prevent duplicate if a...
Power Apps
Answered

Prevent duplicate if already exists in SP list based on 2 Column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

If(
 IsBlank(
 LookUp(Stemminglijst_1;Title = Dropdown.Selected.Value && Datum = IsToday(Today()) ))
 ;Patch(Stemminglijst_1; Defaults(Stemminglijst_1); {Title: Dropdown.Selected.Value})
 ;UpdateContext({varShowPopup:true}))

DropDown  = List with custommers 
Datum = Date 

 

 

I would like to prevent a duplication in the SP list. The two conditions that are considered are the Title (dropdown) and the date(datum) of today. If these two combined do not exist then a "patch" may be performed.

 

Problem:
The Patch works any time, even when an item already exists. Is there a way to do this?

 

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    As Datum is a date field

     

    Datum = IsToday(Today()) is not correct

     

    IsToday(Today()) - will return a true or false

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @RezaDorrani , thanks for the quick response.

     

     

    Datum is indeed a date field.

    Do you have an idea what work? Have already used now () but that doesn't work.

  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    Text(Datum,"[$-en-US]dd/mm/yyyy") = Text(Now(),"[$-en-US]dd/mm/yyyy")

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the support @RezaDorrani !

     

    Text(Datum;"[$-en-nl]dd/mm/yyyy";"bg-BG") = Text(Now();"[$-en-nl]dd/mm/yyyy";"bg-BG")

    Work for us now.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard