SetLotAttrs Method
- Last UpdatedNov 06, 2025
- 1 minute read
The SetLotAttrs() method adds or updates lot attributes. The method includes a lastEditAt DateTime parameter that can be used when updating lot attributes for optimistic concurrency control.
public static void SetLotAttrs(
string itemId,
string lotNo,
int attrId,
string attrValue,
string notes,
string lastEditAt
)
Parameters
- itemId
- Required. Holds the item ID identifying the lot.
- lotNo
- Required. Holds the lot number identifying the lot.
- attrId
- Required. Holds the ID of the attribute to set.
- attrValue
- Required. Holds the value of the attribute.
- notes
- Required. Holds the notes for the attribute.
- lastEditAt
- Optional. Holds a DateTime value to avoid data contention. The passed value must match the lastEditAt value in the database for the update to succeed. Used when updating a lot attribute; if adding a lot attribute, pass a null.