Asked by:
Noot able to set Look Up value in window.open

Question
-
Hi ,
i am trying to set look up value using "Xrm.Utility.openEntityForm("contact", null, parameters);"
But while save the record only the look up is getting displayed.
Look Up need to be displayed on load event it self.
function OpenNewContact() { //Set the Parent Customer field value to “Contoso”. var extraqs = "parentcustomerid={F01F3F6D-896E-DF11-B414-00155DB1891A}"; extraqs += "&parentcustomeridname=Contoso"; extraqs += "&parentcustomeridtype=account"; //Set the Address Type to “Primary”. extraqs += "&address1_addresstypecode=3"; //Set text in the Description field. extraqs += "&description=Default values for this record were set programatically."; //Set Do not allow E-mails to "Do Not Allow". extraqs += "&donotemail=1"; //Set features for how the window will appear. var features = "location=no,menubar=no,status=no,toolbar=no"; // Open the window. window.open("/main.aspx?etn=contact&pagetype=entityrecord&extraqs=" + encodeURIComponent(extraqs), "_blank", features, false); }
http://msdn.microsoft.com/en-in/library/gg334375.aspx
Thanks
- Edited by kMAT1 Tuesday, November 25, 2014 6:38 PM
Tuesday, November 25, 2014 6:37 PM
All replies
-
Are the other fields showing up on load of the form?
--
Regards,
Gopinath
Wednesday, November 26, 2014 6:02 AM -
Yes ,
except look up , all the other field are population
Wednesday, November 26, 2014 7:31 AM -
Please make sure that Contoso is an account in your system and GUID of this record should be as stated in the code
Regards Faisal
Wednesday, November 26, 2014 12:56 PM -
Monday, December 1, 2014 7:44 PM
-
Hi,
You need to change the Guid and account name that exist in your system. Account with Guid doesn't exist F01F3F6D-896E-DF11-B414-00155DB1891A and Name Constoso in your system.
Please change it to Guid of account that exist in your system.
Thanks!
Kalim Khan
- Proposed as answer by Kalim Khan Monday, December 15, 2014 7:21 AM
Tuesday, December 2, 2014 6:28 AM