Greetngs!
I have on issue in my support ticketing app. Which takes last message from the ticket excluding internal note. It do not reads internal note for the messges. But whenever I am coming in new agent workspace UI. It takes internal notes as last message, I don't know why it is not working in new UI. Attached a video please review and let me know, If someone helps with this.
https://www.loom.com/share/7fe8f4bf986d451b98bcbaa168458584
I am using this method to get last message on ticket:
Thanks
So it turns out that the UI that it's not working in is actually the old UI, not the new one (agent workspace). The reason for this is that in the old UI, internal notes were not a channel as they are in agent workspace. Further to the issue here is that...to my surprise...there isn't a method available to determine if a comment is an internal comment for the old UI.
The good news though is that you can use our Ticketing API to get this information and it will work the same in both UIs. You'll just make a
client.requestcall to the List Comments API (with async/await or a Promise) to get thecomments.publicvalue and if it'sfalse, then this should all work fine.Apologies that this was so confusing, I'm actually a bit surprised that there are these types of discrepancies in the APIs. On the positive side, we are in the process of moving all accounts to agent workspace, so this won't be an issue for too much longer and once it's complete, you could go back to the cleaner code above. Let us know if you have any questions!