web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update Collection base...
Power Apps
Unanswered

Update Collection based on values of Selected Field

(0) ShareShare
ReportReport
Posted on by 19

This is puzzling me and have worked for many days on this :

I am looking to update/create an existing collection (colA) in Power Apps that, upon the user selecting an option from the dropdown named 'txtLetterType,' where the txtLetterType values come from from SharePoint List XZY column A.' The collection should store the data of SharePoint List XYZ column B (Column B is a lookup Column with multiple choice) of the txtLetterType selected record. 

 

The collection will have 2 columns, Column A a unique ID such as varUniqueID

 

 

Set(
 varUniqueID,
 "MM" & Text(
 Now(),
 "yymmdd"
 ) & Text(
 Now(),
 "hhmmss"
 )
);

 

 

 and ColumnB would have the  SharePoint List XYZ column B.

 

 

for Example:

 

User selects an option from txtLetterType,

 

SampleSelection

 

SampleSelection record in SharePoint list contains a lookup Value on ColumnB (1,2,7)

 

Collection will have

colA

ID         SharePointColumnB (Lookup SharePoint Column multiple values)

1234     1

1234     2

1234     7

 

 

Any help would be appreciated. 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @rojomoin ,

     

    Please try:

    Collect(colA, ForAll(LookUp(SPXYZ, ColumnA = txtLetterType.Selected.ColumnA).ColumnB.Value,{ColumnA: varUniqueID, ColumnB: ThisRecord.Value}))

     

    Best regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard