PnP libraries - difference between SMLastModifiedDate and TimeLastMofidied

Pfeiffer Andreas - UCI 170 Reputation points
2024-03-25T14:49:04.8266667+00:00

Hello,

I'd like to know the difference between SMLastModifiedDate and TimeLastMofidied

One is found when get the field with Get-PnPListItem while the other is found with Get-PnPFile

The code :

1. Get-PnPListItem -List <list> -Fields SMLastModifiedDate
2. Get-PnPFile -Url <url> #see property TimeLastModified

While testing, I saw some differences and I'd like to understand what is behind the SMLastModifiedDate respectively TimelastModified .

Thank you

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,703 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,519 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Du-MSFT 46,171 Reputation points Microsoft Vendor
    2024-03-26T05:34:51.51+00:00

    TimeLastMofidied is the date and time when a record was last modified by a user

    And SMLastModifiedDate is the system modified date, refers to the date and time when a record was last modified by a user or by an automated process, such as a flow trigger and etc. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Pfeiffer Andreas - UCI 170 Reputation points
    2024-03-26T07:31:33.28+00:00

    Hi Emily,

    Thank you for the crystal clear answer. I may ask you on top another related question

    Does a simple file access (without changes applied to the file) impact one of those 2 dates or should I have a look on another field ? If I follow your instruction, it should be SMLastModifiedDate, but really not sure

    Thank you


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.