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 / Referencing another co...
Power Apps
Unanswered

Referencing another collection using a common column to call on a specific ID and update it to SQL DB

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to take 2 form inputs (Value(txt_sp_id.Text) and txt_cl_code.Text) and check for duplicates in collection:SessionInfo.

If there are no duplicates, it will use 'cl_code' created in form:ClassDetailsForm and extract the 'c_id' associated with the new 'cl_code' in table:Class and patch it to table:Sessions.

 

'c_id' is the primary key of Class, each 'cl_code' is identified by 'c_id'. 

'sp_id' is the primary key of Speaker.

SessionInfo is a collection containing multiple tables, ie Class and Speaker.

 

This is how it is linked:

mozzerellagoril_0-1666085146865.png

 

This is what part of SessionInfo looks like:

mozzerellagoril_1-1666085186107.png

 

 

These are my current formulae (for Class, Speaker, and Sessions, respectively):

 

ForAll(Class,
If(cl_code <> txt_cl_code.Text,
SubmitForm(ClassDetailsForm)));

 

ForAll(Speaker,
If(sp_id <> Value(txt_sp_id.Text),
SubmitForm(SpeakerDetailsForm)));

 

ForAll(SessionInfo,
If(And((sp_id <> Value(txt_sp_id.Text)),(cl_code <> txt_cl_code.Text)),
Patch(
Sessions,
Defaults(Sessions),
{
c_id: ?
sp_id: Value(txt_sp_id.Text)
}
)));

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard