Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Unable to set regardingobjectidtype through form parameters in crm 2011?

$
0
0

Hi,

I am unable to set regardingobjectidtype through parameters.I tried in different ways, created three parameters on my lead form(p_Id,p_name,p_type) then 

function passData(){
var parameters = {};
  parameters[ "parameter_id"] = Xrm.Page.data.entity.getId();
  parameters[ "parameter_name"] = "Lead";
  parameters[ "parameter_type"] = "lead";
Xrm.Utility.openEntityForm( "task" , null , parameters);      }
function getParams() { var param=Xrm.Page.context.getQueryStringParameters(); var regardingId= param["parameter_id"]; var regardingName= param["parameter_name"]; var regardingType= param["parameter_type"]; //Populate the Regarding if there is one if (regardingId != undefined) { Xrm.Page.getAttribute("regardingobjectid").setValue([{id:regardingId, name:regardingName, entityType:regardingType}]); } }


I chosen this because of we cant set values to regarding and partylist.

function passData() will trigger on the 'lead' form and function getParams() will trigger on the 'task' form.

Please help me.


Viewing all articles
Browse latest Browse all 46379

Trending Articles