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.
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 ' ))