Updated field not changing

ravigajananjosh
Mega Contributor

I am working on a project where I would be modifying a record of user defined table using rest api method PUT. But if I update a record with the same values the Updated field doesnt   show the time the record updated. The same holds true even if I update the record with the same.

1 ACCEPTED SOLUTION

Hi Chuck,



Your understanding is correct. So that means I need to create a separate field and update that field from Rest API. Do you have any other solution?


View solution in original post

6 REPLIES 6

Chuck Tomasi
Tera Patron

Hi Ravi,



Just so I'm clear... You have a record with something like this:



Field 1 = value1


Field 2 = value2



and your REST API tries to do an update where Field 1 = value1 and/or Field 2 = value2 and you expect the "Updated by" and "Updated on" fields to reflect that, correct?



If there are not value changes to the field, the system doesn't really do an update. That's to save time. If nothing changed, it's not really an update.



Please let me know if I have misunderstood the question/issue.


Hi Chuck,



Your understanding is correct. So that means I need to create a separate field and update that field from Rest API. Do you have any other solution?


Hi Ravi,



Yes, unless you make SOME kind of update to that record, be it on an existing field or a new field, if nothing changes, nothing will be updated/saved. A new field that you force with some sort of time stamp, serial number, etc. will definitely do the trick.


Thanks for the reply Chuck. I did it by creating a field and send the current date/time to that field externally.



Another way would be have a field and update the field by 2 values alternatively so that record changes every time. Like a number 1 2 1 2 1 2 1 2 1 2 .......