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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamics get Customer ...
Power Apps
Answered

Dynamics get Customer name from customerid value

(0) ShareShare
ReportReport
Posted on by 4

I'm trying to create an app for basic Case management but the Cases table in my Dynamics 365 connection doesn't appear to include a number of the more useful fields I'd like to display- not even the Case ID.

 

Is there any way I can perform a lookup to add the Case ID, Owner and Customer/Contact fields to my Gallery, Detail and Edit screens? I've added Contacts as an additional datasource but am not sure how to write the query, or if it's even possible.  

 

Case ID = incidentid

Contact = _primarycontactid_value

Customer = _customerid_value

Owner = _ownerid_value

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi PanooneHDA,

     

    Yes, it could be achieved by using Lookup function.

     

    I guess you could refer to this thread about “Filter based on related table/entity”, there is a workaround on this issue, please try if it works for you:
    https://powerusers.microsoft.com/t5/PowerApps-Forum/Filter-based-on-related-table-entity/td-p/10618

     

    Please feel free post back if you need more help.

     

     

    Best regards,
    Mabel Mao

  • PanooneHDA Profile Picture
    4 on at

    Hi Mabel,

     

    I don't see this working in my situation.

     

    The datasource for my app is Dynamcis 365 connected to the Case entity. The app is pre-created to include new/edit and display forms for the entity. The issue is that many fields are displaying GUIDs (which I assume are lookups) instead of the text value.

     

    Also, many common fields such as Description simply aren't available to select.

     

    Please refer to the screenshot below.

     

    case-viewform.png

  • Jeff Myers Profile Picture
    11 on at

    I am having the exact same issue.  Did you ever figure out how to get this working?

  • Boa Constructor Profile Picture
    6 on at

    Bumping this up. 

     

    Surely there's a reasonable, functional way to do this? 

     

    If organisations are to use PowerApps to create line of business apps, isn't the need to have a Customer name on the same form as Case fields (for example) fairly fundamental? 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    [Please delete this message]

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    [Please delete this message]

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    [Please delete this message]

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    To display the related contact, do this :

     

    1) Add the Contacts entity as a new datasource

     

    2) Write this in the Default property of the Contact datacard :

     

    LookUp(Contacts; contactid = ThisItem._primarycontactid_value; fullname)

     

    It should be similar for the other fields, do not forget to add the related entity as a new datasource each time.

  • Boa Constructor Profile Picture
    6 on at

    Thanks Max - looks like there's a reasonable way and this was my lack of knowledge 🙂

  • MitchC3 Profile Picture
    68 on at

    This does not work for me. I added the data source and it still appers to be an error with contactid. I hover over it and get "Name isn't valid. Identifier isn't recognized" I checked in the CRM entity and the primary key field is named contactid. Also doesn't work for Users where the primary key is systemuserid.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard