Click or drag to resize

ResourceServicesAddStockLocations Method

Adds one or more StockLocations to 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 AddStockLocations(
	Guid sessionId,
	Guid parentId,
	StockLocation[] newStockLocations
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
parentId
Type: SystemGuid
The Id of the parent, which is of type Stock, TemperingOven, ColdStorage, or StockLocation.
newStockLocations
Type: FactoryLogix.xTend.DataObjectsStockLocation
A list of the new StockLocations to be added.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
AlreadyExistsExceptionThrown if StockCode property of the any of the stock locations conflicts with another StockLocation.
StockLocationDepthLimitExceptionThrown if the parentId is a stock location that is already at the lowest point of the stock location tree in which case no stock locations can be added.
NotFoundExceptionThrown if assigning parts that do not exist in the part library.
See Also