I'm working with 8,2 on this issue using javascript
I'm having a problem where I cannot open a form using Xrm.Utility.openEntityForm and populate a lookup within that form.
the field name for the lookup in the target form is lee_fieldnameid
The lookup field relates to the entity that the form is opened from
the code I'm using to try and open this is
var parameters = {};
parameters["lee_fieldnameid"] = varId;
parameters["lee_fieldnameidname"] = varRecordName;
parameters["lee_fieldnameidtype"] = varEntityName;
Xrm.Utility.openEntityForm("lee_targetForm", null, parameters , { openInNewWindow: true });
varId is the id of the current record
varRecordName is the name of the current record
varEntityName is the name of the entity for the current record
I suspect that using id in the fieldname is adding to my confusion, but could someone please point me in the right direction?
Thanks
Lee