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 / if condition in Forall...
Power Apps
Unanswered

if condition in Forall issue

(0) ShareShare
ReportReport
Posted on by

My requirement is to update selected records bulk records only if hours =8, otherwise throw error message that one or more records in the collection doesn't match criteria.

Rama130_0-1647257052820.png

 

For this my code for onselect  property of submit button 

 

ForAll(
colselected,
If(
Sum(
Filter(
'TimeEntries',
TE.Value = ThisRecord.Title
),
Duration
) = 8,
Notify(
"This record " & ThisRecord.Title & " have 8 working hours",
NotificationType.Success,
3000
),
Notify(
"This record " & ThisRecord.Title & " does not have 8 working hours",
NotificationType.Error,
3000
)
)
)

 

but it is always displaying error message even If I select the record with 8 hours also.

 

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

    Hi @Rama130 ,

     

    Could you please share more details about your scenario? What's the relationship of the collection and the TimeEntries table? What is the Items property of the Gallery? 

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard