Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Regarding Filter using lookups

(0) ShareShare
ReportReport
Posted on by 11

Hello All,

 

I am using this simple function.

 

ClearCollect(MyComp, Filter('Opportunity Competitors', new_Opportunity.Opportunity = ComboBox2.Selected.Opportunity ).new_Competitor.name)

 

on Opportunity there is a subgrid "Opportunity Competitors"...On this Opp Competitor entity we have a lookup of Competitor entity.

 

Now I am trying to fetch the competitor names of a opportunity and set it in a collection 

 

the function ClearCollect(MyComp, Filter('Opportunity Competitors', new_Opportunity.Opportunity = ComboBox2.Selected.Opportunity ).'Created On' works fine and shows me the correct values. The created on is on the Opportunity Competitor entity.

 

The moment I change this to ClearCollect(MyComp, Filter('Opportunity Competitors', new_Opportunity.Opportunity = ComboBox2.Selected.Opportunity ).new_Competitor.name), I start seeing blank values. What could be the reason. I can see the data being fetched in the network calls. It is just not getting mapped.

  • Verified answer
    abhilashpmenon Profile Picture
    abhilashpmenon 11 on at
    Re: Regarding Filter using lookups

    I have to write this to make it work. ClearCollect(CompetitorName, AddColumns( Filter('Opportunity Competitors', new_Opportunity.Opportunity = ComboBox2.Selected.Opportunity ), "Name1" , Competitor.Name, "CompId" , Competitor.'Competitor ' ))

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard