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 / Patch matching record ...
Power Apps
Unanswered

Patch matching record only else Patch from a different collection

(0) ShareShare
ReportReport
Posted on by 78

Hi there, 

I'm busy creating an app (offline). For startes a customer is selected. A gallery is provided showing existing deal for the customer. The gallery source is a collection the app craetes on start (datasource = SQL tables). 

 

I have managed to add new deals to the customer, achieved by using the collect fucntion to create a temp collection and a patch to the existing collection. 

 

I have also managed to then to select the existing deals and change the deal name, this then gets patched to the collection. The problem however is, I cannot seem to figure out how to patch the update name to the sql gallery. It needs to look if the record exists based on the DEAL_ID, if it exists then patch the new DEAL_NAME. If a deal does not exist, to then patch the new deals added to the temp collection. Below link migh give you a better idea on the journey. 

 

https://drive.google.com/file/d/14oSLA3sPDuKZTFyaE7WFpaJpdH35QEdl/view?usp=sharing 

 

Summary: I would like to look up the matching DEAL ID (collection and datasource) and update the one column only THEN if the collections DEAL ID cannot find matching record, to take the records in the temp collection and write new rows into the DB. 

 

Hope it makes sense. 

Categories:
I have the same question (0)

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard