Forum Discussion
8 Replies
- sunny_mody11 years agoAdvisor
I am not very sure on what your requirement is, but if my understanding is right and you want the last edit author for all/some posts in a particular message you can try out using below rest api and parse the xml for last_edit_author
/restapi/vc/threads/id/${env.context.message.uniqueId}
- Gursimrat11 years agoLeaderIn simple words, I want the list of all the authors who have edited a particular thread.
- According to the REST API documentation about editing messages ( http://community.lithium.com/t5/REST-API/bd-p/developers-rest-api?leaf-id=Message.edit#Message.edit ) this information should be stored in some "contributors" parameter. I can't find any other reference to reading that information anywhere though.
- PaoloT11 years agoLithium Alumni (Retired)
- Gursimrat11 years agoLeader
- PaoloT11 years agoLithium Alumni (Retired)
Then in that case you could pull the latest three replies to the topic, get the author and the corresponding avatar.
- Gursimrat11 years agoLeaderI have already got the avatars of last three authors, now I want all the users who edited it, the count of all the users.
- PaoloT11 years agoLithium Alumni (Retired)
Hi,
I don't t think there is a single REST call which gives you this information directly, so you will have to compose multiple REST calls to get this information. Please note that depending on your approach, there may be scenarios where this information is both expensive to retrieve and impractical to display in the UI (for example topics with hundreds or thousands of replies). A count may be okay in terms of UI but still expensive to calculate.
Hope this helps,
Paolo
Related Content
- 2 years ago
- 11 months ago
- 3 years ago
- 2 years ago