1

I am trying to retrieve data using the JSOM model, and trying to figure out the last modified date of a SharePoint List Item,

Its really strange when I am trying to retrieve the Last Modfied Date from the item

OneListItem.get_item('Last_x0020_Modified'); => Shows Created Date
OneListItem.get_item('Modified'); => Shows Modified Date

My question is if, the option 2 is already working, why does 1 even return the data and if it actually does, why does it return the created Date?

Seems to be a bug Isnt IT?

3
  • I think it's list items versioning related but I couldn't understand how it really works.
    – Salah
    Commented Apr 29, 2019 at 13:32
  • 1
    Is Last Modified a user added or calculated column? "Modified" is the expected name. Commented Apr 29, 2019 at 16:04
  • 1
    Last Modified and Modified are both Date type columns. Commented Apr 30, 2019 at 8:23

1 Answer 1

0

Last_x0020_Modified seems to be a custom column and not a internal, automatically updated, one like 'Modified'. You would have to look at how that column is populated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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