0

i want to get not notified when there are any changes on a field...Im able to get the new value of the field but is it possible to get old(before update) and new(after update) value using streaming API?

0

With the standard API, once the records are updated, you can only get the new values. If you want to get the old and new values, you would need to use a trigger to trigger a Platform Event, or otherwise have had a copy of the data before it was updated.

2
  • Would be pretty cool to have the old value - I also ran into that a while back. Probably wouldn't be hard for sf to include it, given it's probably internally powered by some sort of trigger anyway. Apr 2 at 3:09
  • once again thank you @sfdcfox
    – Tejas
    Apr 5 at 2:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.