[NEW] Show department field on Livechat visitor panel#13530
[NEW] Show department field on Livechat visitor panel#13530
Conversation
packages/rocketchat-livechat/client/views/app/tabbar/visitorInfo.js
Outdated
Show resolved
Hide resolved
packages/rocketchat-livechat/client/views/app/tabbar/visitorInfo.js
Outdated
Show resolved
Hide resolved
|
Hi @rodrigok , How can I get the department information on REST API or, better, on Real-time API? |
|
@juliomac, please take a look at our Livechat Docs: https://rocket.chat/docs/developer-guides/rest-api/livechat/ |
|
Dear @renatobecker, thanks for so quick response! Before finding this merge and you, I did a bit of homework and went looking through all options in rest-api/livechat. There's call for listing departments, there's calls for retrieving department info, but I could not find any call retrieving what is the exact department this particular visitor came from. Can you give me a light? What is the call that retrieves the department defined by the below function on the target website? |
|
Examples of calls that didn't work for me: |
|
@juliomac, I suggest you create a new issue describing your use case, what do you think? |
|
Thanks, done it through: #13766 |
Closes #13371
This PR adds the

departmentfield of the current Livechat room on Visitor info painel, like the image below: