cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
karimabdelrazek
Resolver I
Resolver I

ForAll Formula Stopped Working

Hi,

I have a ForAll formula that was working fine and now it's not.  Is there a current issue with Studio that I'm not aware of?

For reference, this is the formula:

ForAll(col_Orgs,Patch(OrgsAllocatedToProjectsENTITY,Defaults(OrgsAllocatedToProjectsENTITY),
{'Proj-IDinOrgsAllocatedToProjects':Label3_ProjID.Text,
'Org-IDinOrgsAllocatedToProjects':'Org-ID'}))

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @karimabdelrazek ,

Assuming those two fields are in the gallery, you could try this

ForAll(
   col_Orgs As aPatch,
   Patch(
      OrgsAllocatedToProjectsENTITY,
      Defaults(OrgsAllocatedToProjectsENTITY),
      {
         'Proj-IDinOrgsAllocatedToProjects':aPatch.Label3_ProjID.Text,
         'Org-IDinOrgsAllocatedToProjects':aPatch.'Org-ID'
      }
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @karimabdelrazek ,

Assuming those two fields are in the gallery, you could try this

ForAll(
   col_Orgs As aPatch,
   Patch(
      OrgsAllocatedToProjectsENTITY,
      Defaults(OrgsAllocatedToProjectsENTITY),
      {
         'Proj-IDinOrgsAllocatedToProjects':aPatch.Label3_ProjID.Text,
         'Org-IDinOrgsAllocatedToProjects':aPatch.'Org-ID'
      }
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@WarrenBelz .Brilliant! Thank you. I'm unclear though as what the problem was and how this solution works

Hi @karimabdelrazek ,

I always use this structure for complete disambiguation (which is a good thing). Without seeing your model, it is a bit hard to comment why it stopped working.

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,375)