Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //QBD EmployeeQuery to find employee and update email address
- //Documentation: http://goo.gl/uGxhX
- //Find employee
- Intuit.Ipp.Data.Qbd.EmployeeQuery qbdEmployeeQuery = new Intuit.Ipp.Data.Qbd.EmployeeQuery();
- qbdEmployeeQuery.FirstLastName = "Ray Allen";
- List<Intuit.Ipp.Data.Qbd.Employee> Employees = qbdEmployeeQuery.ExecuteQuery<Intuit.Ipp.Data.Qbd.Employee>(context).ToList();
- //Update email address
- EmailAddress email = new EmailAddress() { Address = "[email protected]", Tag = new string[] { "Business" } };
- Employees[0].Email = new EmailAddress[] { email };
- Employee updatedEmployee = commonService.Update(Employees[0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement