/

Display a Dynamics 365 Contact Profile with Account Details in Power Apps: Series 3

Power Apps account edit form screenshot

A contact profile should show the information a seller needs before making a call: name, role, email, phone, and the organization the person belongs to.

1. Pass the selected contact

// Contacts gallery OnSelect
Set(varSelectedContact, ThisItem);
Navigate(scrContactProfile, ScreenTransition.Fade)

2. Bind a Display form

Insert a Display form named frmContactProfile, set DataSource to Contacts, and Item to varSelectedContact. Add Full Name, Job Title, Email, Business Phone, Mobile Phone, and Parent Customer.

frmContactProfile.DataSource = Contacts
frmContactProfile.Item = varSelectedContact

3. Show the related Account

For a contact whose parent customer is an Account, add a label or a related-account card that reads the Account name from the lookup record. The exact expression depends on how the polymorphic customer lookup is surfaced in your environment. Use the generated lookup card or IntelliSense rather than assuming every Parent Customer record is an Account.

4. Refresh the profile

Refresh(Contacts);
Set(
    varSelectedContact,
    LookUp(Contacts, contactid = varSelectedContact.contactid)
)

Use the actual primary key identifier supplied by the app schema. If the lookup returns blank because the record was deleted or access changed, show a message and return to the contacts list.

5. Keep the profile secure

Do not rely on hiding fields in the app to protect sensitive information. Apply Dataverse table permissions, column security where appropriate, and least-privilege roles.