Advertisement
IDNPeterL

IPP .NET DevKit v2 - QBD Employee - Update Email

Jun 18th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. //QBD EmployeeQuery to find employee and update email address
  2. //Documentation:  http://goo.gl/uGxhX
  3.  
  4. //Find employee
  5. Intuit.Ipp.Data.Qbd.EmployeeQuery qbdEmployeeQuery = new Intuit.Ipp.Data.Qbd.EmployeeQuery();
  6. qbdEmployeeQuery.FirstLastName = "Ray Allen";
  7. List<Intuit.Ipp.Data.Qbd.Employee> Employees = qbdEmployeeQuery.ExecuteQuery<Intuit.Ipp.Data.Qbd.Employee>(context).ToList();
  8.  
  9. //Update email address
  10. EmailAddress email = new EmailAddress() { Address = "[email protected]", Tag = new string[] { "Business" } };
  11. Employees[0].Email = new EmailAddress[] { email };
  12. Employee updatedEmployee = commonService.Update(Employees[0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement