Click or drag to resize

ResourceServicesDeleteStockLocations Method

Deletes one or more StockLocations from a Stock, TemperingOven, ColdStorage, or a parent StockLocation.

Namespace:  FactoryLogix.xTend.FactoryResources
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public void DeleteStockLocations(
	Guid sessionId,
	StockLocation[] stockLocations
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
stockLocations
Type: FactoryLogix.xTend.DataObjectsStockLocation
A list of the StockLocations to be deleted, with valid Id properties.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionThrown if Id property of the any of the stock locations is invalid.
RelatedItemExceptionThrown if one or more of the pre-existing stock locations of the resource cannot be deleted because they contain Items.
See Also