Home > @i2analyze/i2connect > records > IRecordProperties > setProperties
records.IRecordProperties.setProperties() method
Sets the values of several properties on the result record.
Signature:
setProperties(properties: RecordProperties<TItemType>): void;
Introduced: API version 1.2
Parameters
Parameter | Type | Description |
---|---|---|
properties | RecordProperties<TItemType> | An object that contains name-value pairs, where the names match property type names, and the values are those that you want to set. |
Returns:
void
Example
Use code like this to set several properties on the seeded result record at once:
seededRecord.setProperties({
'property name 1': 'property value',
'property name 2': 4
});