cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Xun
Level: Powered On

intermintent issue getting lookup field value ids in embedded Canvas App

OK I am working with the following entities

1. Accounts

2. Cases

3. Case Parties (custom entity): this is the middle table for Accounts and Cases, we have a related accounts and realted cases lookup fields on this entity.

ClearCollect(
    colCaseParties,
    Filter(
        'Case Parties',
        xxx_RelatedCaseId.incidentid = GUID(_caseid)
    )
);
ClearCollect(
        colCPAccs,
        Filter(
            colCaseParties,
            Not(IsBlank(xxx_RelatedAccountId.accountid))
        )
   );

the 2nd collection, sometimes it gets records back but sometimes it's empty.

 

The behaviour I have seen so far are

1. If I switch off the following Preview Features "Relational data, option sets, and other new features for CDS" and "Improve data source experience and Common Data Service views" from the App settings, it would appear to work fine.

2. if I switch off "Improve data source experience and Common Data Service views" from the App Settings, it also seems to work fine.

3. When I have both preview features switched on, the results becomes intermitent.

 

with both preview features switched on

I add a gallery to the same screen and set the 1st collection as the datasource for this gallery, and add a label in the gallery with TEXT set to "ThisItem.'Related Account'.'Account Name'". Since, it has been working everytime so far.

 

I don't know if this is just coincidence or what, but could anyone shed some light on this please? 

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: intermintent issue getting lookup field value ids in embedded Canvas App

Hi @Xun ,

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned.

 

Please consider modify your formula as below:

Concurrent(
            ClearCollect(colCaseParties, Filter('Case Parties', xxx_RelatedCaseId.incidentid = GUID(_caseid))),
ClearCollect(colCPAccs, Filter(colCaseParties, !IsBlank(xxx_RelatedAccountId.accountid))) )

Please take a try with above solution, check if the issue is solved.

 

Also please consider re-generate a new app based on your Case Parties Entity, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Xun
Level: Powered On

Re: intermintent issue getting lookup field value ids in embedded Canvas App

Hi @v-xida-msft Kris,

Thanks for your response.

Like I said the results is intermittent.

With your suggests, is that with the Preview Feature "Imporve data source experience and Common Data Service views" set to on or off?

Because what I have seen so far is if this feature is on, then it works intermittently, but if it's off then it works...

Could you confirm that please?

any thanks in adv

Xun

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Users Online
Currently online: 281 members 3,373 guests
Please welcome our newest community members: