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 News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,471)