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 III
Super User III

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 III
Super User III

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

@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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,207)