Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by Microsoft Employee

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
    Community Member Microsoft Employee 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
    Arpit Shrivastava 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 Profile Picture
    Aric Levin 30,188 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
    TomSmelser 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans