Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to select value of Full Name , Email , Phone number from "Contact entity" in custom entity ?

(0) ShareShare
ReportReport
Posted on by

Hello ,

I have created a custom entity e.g. "support" . I am manipulating the entity from Dynamic 365 Portal . I need to show Logged in user's "Full Name ", " Email" ," Phone number " in entity form. For that i have created lookup columns from "Contact" entity . Currently whenever a new user opens the entity form , fields are blank . I want those fields to be pre-populated according to logged in user . Any type of suggestion will be helpful .

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: How to select value of Full Name , Email , Phone number from "Contact entity" in custom entity ?

    Thanks for Reply ,

    Solved my problem .

  • Verified answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at
    RE: How to select value of Full Name , Email , Phone number from "Contact entity" in custom entity ?

    Hi,

    If you want to auto-populate Portal Logged In User in Support Entity Form, use Entity Form Metadata.

    Check below articles for more details:

    https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/entity-form/entity-form-metadata/

    https://nishantrana.me/2017/02/21/using-entity-form-metadata-to-configure-the-entity-form-in-portal-in-dynamics-365/

     

    If you find the answer as useful, please mark it as verified

    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.in

     

  • Aric Levin - MVP Profile Picture
    30,188 Moderator on at
    RE: How to select value of Full Name , Email , Phone number from "Contact entity" in custom entity ?

    Hi,

    There are  various options, but the two main ones are:

    1. Use a quick view that will contain the Email and Phone Number fields. The lookup to the contact form will contain the full name. When the contact is selected, the quick view will display the other fields.

    2. Use Web Api to retrieve the the Email and Phone Number fields from the contact form based on the selection of contact in the lookup control. Upon change of the lookup, call web api retrieve method to retrieve the contact fields. If using CRM 8.x you can CRM Rest Builder, or if using v9, you can use Xrm.WebApi in order to retreive the contact information.

    Hope this helps.

  • TomSmelser Profile Picture
    1,570 on at
    RE: How to select value of Full Name , Email , Phone number from "Contact entity" in custom entity ?

    Hello,

    If I understand correctly one possible solution is a contact lookup field on the user record that links a user to a specific contact.

    So you would need to set the matching contact to the user for each.

    Then you could add some javascript on your Support form to lookup the user, retrieving the mapped contact. 

    Then use that contact to set your value on your form.

    Good luck!  

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans