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

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • TomSmelser Profile Picture
    1,570 on at

    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!  

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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.

  • Verified answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at

    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

     

  • Suggested answer
    Community Member Profile Picture
    on at

    Thanks for Reply ,

    Solved my problem .

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans