Click or drag to resize

ResourceServicesUpdateStock Method

Updates the attributes of an existing Stock. The Stock must pre-exist within FactoryLogix. The StockLocations property of the Stock will be ignored, and not altered by this method.

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 UpdateStock(
	Guid sessionId,
	Stock stock
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
stock
Type: FactoryLogix.xTend.DataObjectsStock
The updated stock object with valid Id property.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
ResourceNotFoundExceptionThrown if the stock is not found in the system.
AlreadyExistsExceptionThrown if the stock name is changed to a name that already exists.
InvalidItemStatusExceptionThrown if the stock entering or exiting item status is being changed to an invalid value. Valid values are "Active", "OnHold" and "ItemInStock".
See Also