none
急!!!高手帮我看看看代码有没有问题!! RRS feed

  • 问题

  • incident inc=new incident();
     inc.title = "test..."; 
    
    Customer cust=new Customer (); 
    cust .type =EntityName .account .ToString (); 
    cust .Value =accountEntity.accountid.Value;//accountEntity是通过访问WebService获取的一个客户实体 
    inc.customerid = cust; 
    
    Owner owner = new Owner(); 
    owner.type = EntityName.systemuser.ToString(); 
    owner.Value = accountEntity.ownerid.Value; 
    inc.ownerid = owner; 
    
    Lookup lookup = new Lookup(); 
    lookup.type = EntityName.subject.ToString(); 
    lookup.Value = subjectId.Value;
     inc.subjectid = lookup; 
    
    CrmService.Create(inc);

     通过调用web服务创建一个案例incedent的记录,这四个必填的属性我都赋值了,而且赋的值好像也对的, 可就是报错!!

    报这个错误:Server was unable to process request

    2010年5月18日 14:05

答案

全部回复