Poq.SDK.Node

Home > @poq/sdk-sfcc > BaseModel > getPropertyValue

BaseModel.getPropertyValue() method

Method helps to get custom properties of object since they are not defined in schema.

Signature:

getPropertyValue<T>(propertyName: string): T;

Parameters

Parameter Type Description
propertyName string Property name.

Returns:

T

Value of the property.

Example

// Code could get defined properties and custom properties.
instance.getPropertyValue('c_someCustomProperty');