I have the following scenario:
Dynamics 365 has 3 entities: Asset, Asset Owner, Client
Asset Owners can have many Assets and Many Clients
Clients can have many Assets
This works fine in D365.
I have a PowerApp that has a CDS connector. It can see all of the fields above EXCEPT for the LookUp fields.
I've never had a problem with this before.
All relationships were created in D365 and published.
LookUp fields are available in D365.
Strangely the ClientID lookup appears to be available on the Asset connection but that's it.
Hi @chris61 ,
Could you please share a bit more about your issue?
Do you mean that the LookUp field could not be displayed within your Client Entity but in Asset Entity?
Actually, the Entity of Dynamics 365 CRM is based on/built on the Common Data Service for Apps(CDS) within PowerApps.
Based on the issue that you mentioned, I think you have a misunderstanding on the representation of Relationship set up between two different Entities within PowerApps.
If you created a One-to-Many (1:N) Relationship from your Client Entity to your Asset Entity, the Asset Entity would be the Primary Entity, the Client Entity would be the Related Entity. The LookUp field (generated via this Relationship) would be existed within the Primary Entity (Asset Entity).
More details about the Relationships within the Common Data Service (CDS) within PowerApps, please check the following article:
Thank you for your reply.
I have set up the relationships in the correct way. The Asset has lookups to both Client and Asset Owner in Dynamics 365. Additionally, the Client has a lookup to Asset Owner. Both Client and Asset Owner have sub-grids that list the Assets associated with them.
The problem in PowerApps is that when I'm working with Asset entity via CDS I only have ClientId available. I don't have Asset Owner ID available and I can't fathom why this is the case!
Also, when working with the Client entity, there is no field to reference the Asset Owner.
It has halted app development in this case.
For reference I've attached an image to show the list of available records for the Asset entity. You can see Client is available. This provides me the ability to see the related Client from the Asset. What you cannot see, which is the problem I'm having, is the Asset Owner value/field. It just isn't there. Dynamics 365 has this working fine and it's also showing in PowerApps solutions. It just isn't in PowerApps canvas app builder.
Here's a really in depth docs page that demonstrates how to work with lookups in canvas apps. https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-references
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.