Skip to main content
Dynamics 365 general forum
Suggested answer

Lookup Field Help

editSubscribe (0) ShareShare
Posted on by UG Leader


So I am looking at creating a child record to an account, however, when pushing over the ID from the parent to the child's lookup input I am receiving this value:


When this value is clicked on, it takes the user to the correct Account, but as you can see the display name is showing (No Name), the code for this that I use is within a button on the ribbon and reads as follows:

function myFunctionThree() {

//Parent form and fields    
var z =;
//var x = Xrm.Page.getAttribute("name").getValue()

//Desired Form
var entityFormOptions = {};
entityFormOptions["entityName"] = "incident";

//Desired Fields
var formParameters = {};
formParameters["customerid"] = z;
//formParameters["customername"] = x;


// Open the form.
    function (success) {
    function (error) {
Hopefully there is a fix for this as it does set once it is saved.
  • Suggested answer
    TylerS.Dev Profile Picture
    TylerS.Dev 725 on at
    RE: Lookup Field Help

    this is more of a suggestion but you might want to use formContext instead of Xrm.Page because it has been depreciated.

  • Suggested answer
    Community Member Profile Picture
    Community Member UG Leader on at
    RE: Lookup Field Help


    I have managed to solve this as I have discovered that the Lookup field requires an array of data to be pushed into for the Object, ID and Name.

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,126 Super User

Martin Dráb Profile Picture

Martin Dráb 222,646 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans