I am trying to work on a task which will find all recent changes to any fields for an Opportunity
within the system.
It looks as if Change Data Capture takes care of this, but I'm struggling to implement it.
Done so far
- Added
Opportunity
to theChange Data Capture
list in Setup - Made a change to an Opportunity
Problem
Now, I'm trying to call the API and find the change that I've made.
According to this page (Subscription Channels section), it seems like all changes will be found at /data/ChangeEvents
, but the URL is not qualified, and there are no examples, so I don't know exactly where I should be directing the request.
What I've tried
http://{myentity}.salesforce.com/data/ChangeEvents http://{myentity}.salesforce.com/data/v47.0/ChangeEvents
Both gave URL No Longer Exists
http://{myentity}.salesforce.com/services/data/v47.0/ChangeEvents http://{myentity}.salesforce.com/services/data/ChangeEvents
both gave
{
"errorCode": "NOT_FOUND",
"message": "The requested resource does not exist"
}
myentity.../services/data/v47.0/tooling/sobjects/PlatformEventChannel
"urls": {
"rowTemplate": "/services/data/v47.0/tooling/sobjects/PlatformEventChannel/{ID}",
"defaultValues": "/services/data/v47.0/tooling/sobjects/PlatformEventChannel/defaultValues?recordTypeId&fields",
"describe": "/services/data/v47.0/tooling/sobjects/PlatformEventChannel/describe",
"sobject": "/services/data/v47.0/tooling/sobjects/PlatformEventChannel"
}
},
"recentItems": []
myentity.../services/data/v47.0/tooling/sobjects/PlatformEventChannelMember
"urls": {
"rowTemplate": "/services/data/v47.0/tooling/sobjects/PlatformEventChannelMember/{ID}",
"defaultValues": "/services/data/v47.0/tooling/sobjects/PlatformEventChannelMember/defaultValues?recordTypeId&fields",
"describe": "/services/data/v47.0/tooling/sobjects/PlatformEventChannelMember/describe",
"sobject": "/services/data/v47.0/tooling/sobjects/PlatformEventChannelMember"
}
},
"recentItems": []
I have been able to successfully retrieve and update data through the API, so I'm certain that there aren't any problems with authorisation or any other config