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?

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

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.

| improve this answer | |

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.