Error when defaulting field value using paramaters on form

Seems to be a bug in CRM 2013 Online RU1 that generic error occurs when defaulting a lookup field value using parameters on form.

I had the following code:

       var parameters = {};      
       parameters["new_customid"] = "621E9F4C-AD5C-E311-84F4-D89D67768C0C";      
       parameters["new_customidname"] = "Record Name";
       parameters["new_customidtype"] = "new_customentity";
       Xrm.Utility.openEntityForm("new_anotherentity", null, parameters);

to pre-populate the 'new_customid' lookup field but generic error occurred.

Searched on the web for a bit and found Form Query String Parameter Tool, and noticed that the last parameter ["new_customidtype"] is not required. However, CRM SDK states that this last parameter is required.

Nonetheless, removed the last parameter and it works now.

Comments

Popular posts from this blog

Request not supported new_xxx when calling Custom Action via WebApi

Error in workflow sending email: "You cannot send email as the selected user."

CRM 4: Cannot login - 'Invalid Action', key has expired.