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 Apps
Unanswered

Duplicate Warning

(0) ShareShare
ReportReport
Posted on by 2

Hey everyone,

 

I am currently facing a challenge. I am creating an event app in which users will attend sessions they favourite, this favourite list will appear and display the selected sessions. This is all fine, however, I only want a user to be able to select one session during the available time slot i.e. from 10am-11am there are two available session and you can only choose one of them, if you choose both a warning appears to indicate that you already have a session booked during that time slot. 

 

How am I able to create this duplication warning? Would I use conditional formatting i.e. If Repeated Twice, Colour 1 otherwise Colour 2. Or is there another way?

 

Thank you!!

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Sierra_Alpha ,

     

    What is the data source and what is the control that you use to select the sessions in this app? 

     

    Regards,

    Mona

  • Sierra_Alpha Profile Picture
    2 on at

    Hi Mona,

     

    I am using CDS as my data source. So when I select the session, I have added a favourite button which adds that session to a new screen. The formula I am using is:

     

    If(ThisItem.cr4f6_sessionid exactin (Filter([@'User Selected Sessions'],cr4f6_AttendeeIDV2.'Attendee Email'=User().Email)).cr4f6_SessionID.cr4f6_sessionid,
    Remove([@'User Selected Sessions'],Filter([@'User Selected Sessions'],cr4f6_AttendeeIDV2.'Attendee Email'= User().Email,cr4f6_SessionID.cr4f6_sessionid=ThisItem.cr4f6_sessionid)),
    Patch([@'User Selected Sessions'],
    Defaults([@'User Selected Sessions']),{
    cr4f6_AttendeeIDV2:(LookUp(Attendees,cr4f6_attendeeemail=User().Email)),
    cr4f6_SessionID:(LookUp('Session Workshops',cr4f6_sessionid=ThisItem.cr4f6_sessionid))}))

     

    All I want it to do now is warn me that I aleady have a session booked and cannot book another session during the same time period.

     

    Kind regards,

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard