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 Patching record...
Power Apps
Answered

ForAll Patching records that do not exist

(0) ShareShare
ReportReport
Posted on by 3

I am trying to build abut that takes the contents of a collection, checks to see if the record already lives in a sharepoint list and if not create a record for it.

Here's what I've got so far but im honestly lost for making it work:

ForAll(If(ShowColumns(CombinedRecords,"field_3" )=Filter(Live_User_Record, "PZINSKEY"),
"Do nothing",
Patch(Live_User_Record,Defaults(Live_User_Record),
{Title:User_idVar},
{LastChange:Now()},
{Changeby:User_idVar},
{PZINSKEY:ForAll(ShowColumns(CombinedRecords,"field_3" ))}
)
))

I would really appreciate any help anyone could give, I may be out of my depth here.

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @PeterOwen1,

    Do you want to patch a not existing column from collection to SP list?

    Could you please share a bit more about your scenario?

     

    ForAll(
     ShowColumns(CombinedRecords,"field_3" ) As aPatch,
     With(
     {
     wItem: LookUp(
     Live_User_Record,
     PZINSKEY= aPatch.field_3).ID
     },
     If(
     IsBlank(wItem),
     Patch(
     Live_User_Record,
     Defaults(Live_User_Record),
     {
     PZINSKEY: aPatch.field_3,
     }
     )
     )
     )
     )
  • PeterOwen1 Profile Picture
    3 on at

    Sorry re-reading my post I didn't do a fantastic job of explaining.

    The post came from a place of frustration and I have since re thought my logic, thanks for the reply this post is no longer relevant.

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

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard