我正在调用 Dynamics CRM 操作,它有一个来自 SSIS 脚本组件的参数。
我收到这个错误:
System.NullReferenceException
在这行代码上:
OrganizationResponse response = service.Execute(Req);
OrganizationRequest Req = new OrganizationRequest("myaction");
Req["param"] = "param";
if (service != null)
{
OrganizationResponse response = service.Execute(Req);
}