Get field value history
client.opportunity.fieldHistory(stringfieldKey, OpportunityFieldHistoryParams { id, after, limit } params, RequestOptionsoptions?): OpportunityFieldHistoryResponse { data, hasMore, nextCursor }
GET/v1/opportunities/{id}/fields/{fieldKey}/history
Returns the value-change history for a single field on a record, newest first. Consecutive identical values are collapsed. History is cursor-paginated: pass nextCursor from the previous response as after to page through older values. Only attribute-backed fields (custom attributes and attribute-backed system fields) have history — column-backed system fields return an error.
Required scope: opportunities:read
Rate limit category: Read
Get field value history
import Lightfield from 'lightfield';
const client = new Lightfield({
apiKey: 'My API Key',
});
const opportunityFieldHistoryResponse = await client.opportunity.fieldHistory('fieldKey', {
id: 'id',
});
console.log(opportunityFieldHistoryResponse.data);{
"data": [
{
"displayValue": "displayValue",
"isCreate": true,
"recordedAt": "recordedAt",
"value": "string",
"valueType": "ADDRESS"
}
],
"hasMore": true,
"nextCursor": "nextCursor"
}Returns Examples
{
"data": [
{
"displayValue": "displayValue",
"isCreate": true,
"recordedAt": "recordedAt",
"value": "string",
"valueType": "ADDRESS"
}
],
"hasMore": true,
"nextCursor": "nextCursor"
}