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 / ForAll - Patch Stateme...
Power Apps
Unanswered

ForAll - Patch Statement with a LookUp value

(0) ShareShare
ReportReport
Posted on by

Looking for another set of eyes.  This formula is to patch to a Sharepoint list.  The list column JobName in Sharepoint (and in Power Apps) is a Lookup to another table TMPC Job Names.

 

ForAll(
RequestCollection,
If(!IsBlank(Location),
Patch('Per Diem Request Detail List', Defaults('Per Diem Request Detail List'),
{
PerDiemDate: DateValue(PerDiemDate),
Location: Location,
PerDiemRate: PerDiemRate
{
JobName:
{
Value: JobName,
Id:
LookUp(
'TMPC Job Names',
JobName= JobName
).ID
}
}
Notes: Notes,
TravelDay: {Value:TravelDay},
Reimbursement: Reimbursement,
CompanyHousing: {Value:CompanyHousing},
CompanyCar: {Value:CompanyCar},
MasterID: frmMaster.LastSubmit.ID
}
))) 

Categories:
I have the same question (0)
  • turnerj3 Profile Picture
    2,039 on at

    What errors is it giving?

  • Will30 Profile Picture
    on at

    I just changed the SharePoint column to Single Text and it works fine.  Not sure if using the same Lookup column in both SharePoint and PowerApps actually works.

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard