Michel,
Again, thanks for all of the assistance.
I can get the lead form to open perfectly as long as I do not reference the lookup field. If I do, the form starts open, then displays an error dialog box.
I tried using the line that you provided: parameters["new_projectreportfield"] = prid;
I also tried the following based on other posts that I have seen:
parameters["new_projectreportId"] = projectID;
parameters["new_projectreportType"] = Xrm.Page.data.entity.getEntityName();
parameters["new_projectreportName"] = title;
It gives me this error information:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3D49D6D6Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>b03fb714-4194-45a3-9368-b2c85a98da45</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3D49D6D6</Message>
<Timestamp>2018-03-18T19:29:30.2484864Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>b03fb714-4194-45a3-9368-b2c85a98da45</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.InvalidOperationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3BAA3123</Message>
<Timestamp>2018-03-18T19:29:30.2484864Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
What else can I try here?
Thanks.
Bryan Hunt