Hi,
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 = Xrm.Page.data.entity.getId();
//var x = Xrm.Page.getAttribute("name").getValue()
//Desired Form
var entityFormOptions = {};
entityFormOptions["entityName"] = "incident";
//Desired Fields
var formParameters = {};
formParameters["customerid"] = z;
//formParameters["customername"] = x;
//Testing
console.log(x);
// Open the form.
Xrm.Navigation.openForm(entityFormOptions, formParameters).then(
function (success) {
console.log(success);
},
function (error) {
console.log(error);
});
}
Hopefully there is a fix for this as it does set once it is saved.
Thanks,
Jay