- Installation
- Push Notifications
- Rest API
- UI Customization
- API Reference
- Zoho SalesIQ
- Launcher
- Conversation
- Chat
- delegate
- start()
- startWithTrigger()
- setWaitingTime()
- get()
- isEnabled
- getList()
- getDepartments()
- fetchAttenderImage()
- show()
- startChat()
- setVisibility()
- setTitle()
- setLanguage()
- setDepartment()
- setAgentEmail
- setMessage()
- showOfflineMessage()
- getUnreadMessageCount()
- endSession()
- clearData()
- showFeedbackAfterSkip()
- hideQueueTime()
- open()
- Chat Actions
- Calls
- Logger
- Visitors
- Visitor Tracking
- Push & VoIP
- In-App Notifications
- Notification
- Knowledge Base
- FAQ
- SDK 2.x
- Chat
- .Chat.startChat()
- .Chat.setVisibility()
- .Chat.setTitle()
- .Chat.setLanguage()
- .Chat.setDepartment()
- .Chat.setAgentEmail()
- .Chat.setThemeColor()
- .Chat.setVisitorImage()
- .Chat.setMessage()
- .Chat.showOfflineMessage()
- .Chat.getUnreadMessageCount()
- .Chat.clearMessages()
- .Chat.setBarColor()
- .Chat.setBarTintColor()
- .Chat.setSearchTintColor()
- .Chat.setBarTitleColor()
- .Chat.endSession()
- .Chat.clearData()
- Event Handler
- Visitors
- Tracking
- Chat Window
- Push Notification
- In-App Notifications
- Conversation
- FAQ
- Chat
- Download Sample App
- Release Notes
- Additional Features
- Help Videos
getList()
Note: This API is supported from version 10.0.0.
The getList() API fetches the list of conversations and returns the result via the callback.
Parameters:
- completion: A closure that returns the result of retrieving the list of conversations.
- Error: An object describing the failure.
- Conversations: An array of SalesIQConversation objects, each containing the following properties:
- SalesIQCall: Represents a direct call.
- SalesIQChat: Represents a chat converted to a call.
Example
CopiedZohoSalesIQCalls.getList { error, conversations in
if let error = error {
// Handle error: access error.code and error.message for more details
print("Error: \(error.code) - \(error.message)")
} else {
conversations.forEach { conversation in
if let callConversation = conversation as? SalesIQCall {
// Handle call conversation
print("Call ID: \(callConversation.id)")
} else if let chatConversation = conversation as? SalesIQChat {
// Handle chat conversation
print("Chat ID: \(chatConversation.id)")
}
}
}
}
© 2025, Zoho Corporation Pvt. Ltd. All Rights Reserved.