1

Anyone knows how to get the "Last Reply By" of a discussion thread from REST? I use:

_api/web/lists/getByTitle('NL Management Discussion')/items?$expand=Author,Folder&$select=ID,Title,Modified,Author/Title,DiscussionLastUpdated,Folder/ItemCount,Folder/LastReplyBy&$top=5000&$filter=startswith(ContentTypeId, 

It does not error but there is no 'LastReplyBy' in the folder's values. The Item count does show.

1 Answer 1

1

We can use the REST API below to get 'LastReplyBy'.

_api/web/lists/getByTitle('NL%20Management%20Discussion')/items?$expand=Author,Folder,LastReplyBy&$select=ID,Title,Modified,Author/Title,LastReplyBy/Title,DiscussionLastUpdated,Folder/ItemCount&$top=5000&$filter=ContentType eq 'Discussion'

enter image description here

2
  • So "LastReplyBy" is like author and folder. good to know. thank you much
    – Ofer Gal
    Aug 14, 2018 at 17:27
  • Yes, the "LastReplyBy" is a user field.
    – LZ_MSFT
    Aug 15, 2018 at 1:32

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.