Vendor API

This topic describes the vendor APIs for the Integration Framework.

API

Name Description
void Delete(LogonInfo, RecordIdentifier)

Delete a vendor.

Parameters:

  • logonInfo: Login information for the database
  • vendorID: The ID of the vendor to delete
void Get(LogonInfo, RecordIdentifier)

Get a vendor.

Parameters:

  • logonInfo: Login information for the database
  • vendorID: The ID of the vendor to get
void Save(LogonInfo, Vendor)

Save a vendor.

Parameters:

  • logonInfo: Login information for the database
  • vendor: The vendor to save
VendorSaveResult SaveList(LogonInfo, List<Vendor>)

Save multiple vendors.

Parameters:

  • logonInfo: Login information for the database
  • vendors: The vendors to save

 

Business objects

The following business objects are used by the vendor API.

 

Examples

To update vendors you must use the optimized update feature.

Updating a vendor


	Vendor vendor = wcfVendorService.Get(CreateLogonInfo(dataModel), "0000001");
	vendor.Text += "-Updated";

	((IOptimizedUpdate) vendor).CloneUpdateListToTransportList();
	wcfVendorService.Save(CreateLogonInfo(dataModel), vendor);
			

In the above example, firstly we get an existing vendor through the Integration Framework, update it, then we clone the update list using the optimized update functionality. After we update all properties accordingly we save the vendor through the Integration Framework.

Deleting a vendor


	wcfVendorService.Delete(CreateLogonInfo(dataModel), "0000001");
			

See also