Get field value history
opportunity.field_history(strfield_key, OpportunityFieldHistoryParams**kwargs) -> OpportunityFieldHistoryResponse
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
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
opportunity_field_history_response = client.opportunity.field_history(
field_key="fieldKey",
id="id",
)
print(opportunity_field_history_response.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"
}