Click or drag to resize

PartServicesUpdatePart Method

Updates an existing part definition. This may be an internal part definition, a customer part, and manufacturer part, or a vendor part. The kind of part to be updated is determined by the object type of the part parameter. The method will fail if the part specified by the part parameter does not presently exist in the system. Any changes to the CustomFieldValues property of the part will also be committed by this method.

Namespace:  FactoryLogix.xTend.PartDefinition
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public PartBase UpdatePart(
	Guid sessionId,
	PartBase part
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
part
Type: FactoryLogix.xTend.DataObjectsPartBase
An object derived from type PartBase containing the updated part definition. and may be of type InternalPart, CustomerPart, ManufacturerPart, or VendorPart. The Id property of the object must be valid.

Return Value

Type: PartBase
An object derived from type PartBase representing the updated part with a valid Id property.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionAn existing part with matching Id property was not found in the system.
AlreadyExistsExceptionAn existing part with matching part number and revision was found in the system.
ConvertAssemblyToPartExceptionConverting an assembly to internal part is not allowed.
CustomerDoesNotExistsExceptionThe customer defined for the customer part does not exist in the system.
ManufacturerDoesNotExistsExceptionThe customer defined for the manufacturer part does not exist in the system.
VendorDoesNotExistsExceptionThe customer defined for the vendor part does not exist in the system.
NotAuthorizedExceptionThrown when not authorized to perform the function.
See Also