Discussions
Problem while creating Track Time
Hi ,
We are trying to create a Track Time record using Webservices (2.5 Version) and we are getting error like "The specified key is invalid" . We are using the following code. pls help me out ....
TimeBill tm = new TimeBill();
RecordRef rf = new RecordRef();
rf.internalId ="978";
rf.name ="sudheer allampati";
rf.type = RecordType.employee;
tm.employee =rf;
RecordRef r = new RecordRef();
r.internalId ="-5";
r.name="wolfe electronics";
r.type = RecordType.customer;
tm.customer =r;
tm.externalId ="7htr001";
tm.hours ="20";
tm.isBillable =true;
tm.isBillableSpecified =true;
tm.rate =10.00;
tm.rateSpecified =true;
WriteResponse res = cnw.update(tm);
Thanks,
7Huser