Subash B Subash B - 2 months ago 17
C# Question

How to delete Quickbook Employee through my windows application (C# or VB.Net) using QuickBooks SDK 13.0

Please help:

I did

add and edit
functionality in
QuickBooks SDK
using my windows application (C#).

Now, I want to know, how to do
delete operation
QuickBooks SDK

This is my XML Request:

<?xml version="1.0"?>
<?qbxml version="13.0"?>
<QBXMLMsgsRq onError="stopOnError">
<EmployeeModRq requestID="1">
<Addr1>4205 Coleman</Addr1>
<ContactName>Rhonda Westbrooks</ContactName>


You can use the ListDel request to delete employees (and other List type objects like customers, vendors, etc).

From the OSR:

ListDel - Delete a list object

ou can only delete a list item from a QuickBooks company file if the file is open in single-user mode. If the file is open in multiuser mode, your application will receive an error. (This restriction does not apply to deleting or voiding transaction objects.)

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
  <QBXMLMsgsRq onError="stopOnError">
      <!-- ListDelType may have one of the following values: Account, BillingRate, Class, Currency, Customer, CustomerMsg, CustomerType, DateDrivenTerms, Employee, InventorySite, ItemDiscount, ItemFixedAsset, ItemGroup, ItemInventory, ItemInventoryAssembly, ItemNonInventory, ItemOtherCharge, ItemPayment, ItemSalesTax, ItemSalesTaxGroup, ItemService, ItemSubtotal, JobType, OtherName, PaymentMethod, PayrollItemNonWage, PayrollItemWage, PriceLevel, SalesRep, SalesTaxCode, ShipMethod, StandardTerms, ToDo, UnitOfMeasureSet, Vehicle, Vendor, VendorType, WorkersCompCode -->
      <ListDelType >ENUMTYPE</ListDelType> <!-- required -->
      <ListID >IDTYPE</ListID> <!-- required -->