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 Items from anoth...
Power Apps
Unanswered

Patch Items from another sharepoint list based on a primary key

(0) ShareShare
ReportReport
Posted on by 31

Hello Power Platform Community,

 

I have 2 Sharepoint lists, one containing primary keys of recipe names as displayed below:

Recipe_Name:
Air Fryer Pork Chops
Baked Feta Pasta

 

And the other list contains the secondary key of each associated ingredient to the recipe:

Recipe_NameIngredientQuantityMeasurement
Air Fryer Pork ChopsPork2Whole
Air Fryer Pork ChopsBreadcrumbs1Cup(s)
Air Fryer Pork ChopsEggs2Whole
Baked Feta PastaSpaghetti1Whole
Baked Feta PastaOlive Oil2Tbsp(s)
Baked Feta PastaFeta Cheese1Cup(s)

 

In my app I have a gallery with a checkbox that allows users to select the recipe name from primary key list. I am storing the checked items in a collection, then patching that collection to a third SharePoint list. 

 

I am wondering if it is possible to create some sort of LookUp() feature in my patch statement so that if the user selects the recipe_name from the primary key list, it will patch over the secondary key of ingredients associated with that recipe name. My current patch formula is below (colUpdates is the collection of checked items from the Primary Key List Data Source in my gallery):

 

ClearCollect(
colDataToPatch,

ShowColumns(
colUpdates,
"Title",
"field_1",
"field_2",
"field_3",
"field_4",
"field_5",
"field_7",
"field_8",
"List_Name"

)
)
;

Patch(
'Patched Recipes DB',
colDataToPatch
);

Clear(colUpdates);

 

Please let me know if there is a way I can go about doing this.

 

Thanks in advance,

 

Jackson

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard