-
-
Notifications
You must be signed in to change notification settings - Fork 0
Call Outcomes
MC0RE edited this page Mar 31, 2026
·
2 revisions
Read call outcome definitions in Teamleader Focus.
The Call Outcomes resource provides read-only access to the outcome categories available for completed calls. Outcomes are defined in Teamleader and cannot be created or modified through the API.
Access via Teamleader::callOutcomes().
callOutcomes
| Capability | Supported |
|---|---|
| Pagination | β Supported |
| Filtering | β
Supported (ids only) |
| Sorting | β Not supported |
| Sideloading | β Not supported |
| Creation | β Not supported |
| Update | β Not supported |
| Deletion | β Not supported |
use McoreServices\TeamleaderSDK\Facades\Teamleader;
$outcomes = Teamleader::callOutcomes()->list();
$outcomes = Teamleader::callOutcomes()->list([
'ids' => ['outcome-uuid-1', 'outcome-uuid-2'],
]);
$outcomes = Teamleader::callOutcomes()->list([], [
'page_size' => 50, 'page_number' => 1,
]);$outcome = Teamleader::callOutcomes()->info('outcome-uuid');$outcomes = Teamleader::callOutcomes()->byIds(['outcome-uuid-1', 'outcome-uuid-2']);Client-side β calls list() then searches in PHP (case-insensitive). Returns the matching outcome array or null.
$outcome = Teamleader::callOutcomes()->findByName('Positive');
// returns array or null| Filter | Type | Description |
|---|---|---|
ids |
array | Filter by outcome UUIDs |
[
'data' => [
['id' => 'outcome-uuid', 'name' => 'Positive'],
['id' => 'outcome-uuid', 'name' => 'Negative'],
['id' => 'outcome-uuid', 'name' => 'No answer'],
],
'meta' => ['page' => ['size' => 20, 'number' => 1], 'matches' => 5],
]
selectOptions()format: Returns[['value' => uuid, 'label' => name], ...]β an array of objects, not a flat[id => name]map.
$outcomes = Teamleader::callOutcomes()->list();
// For a plain [id => name] map
$options = array_column($outcomes['data'], 'name', 'id');$outcome = Teamleader::callOutcomes()->findByName('Positive');
if ($outcome) {
Teamleader::calls()->complete('call-uuid', $outcome['id'], 'Client confirmed.');
}$outcomes = Cache::remember('tl_call_outcomes', 3600, function () {
return Teamleader::callOutcomes()->list();
});use McoreServices\TeamleaderSDK\Exceptions\TeamleaderException;
try {
$outcomes = Teamleader::callOutcomes()->list();
} catch (TeamleaderException $e) {
Log::error('Teamleader error', ['message' => $e->getMessage()]);
}-
Calls β Outcomes are passed to
Calls::complete()via$outcomeId - Activity Types β Activity categorisation for events and meetings
Last Updated: August 2026 β’ SDK Version: 2.2.2 β’ Made with β€οΈ by MCore Services
- Departments
- Users
- Teams
- Custom Fields
- Work Types
- Document Templates
- Currencies
- Notes
- Email Tracking
- Closing Days
- Day Off Types
- Days Off
- User Schedules
- Invoices
- Credit Notes
- Subscriptions
- Payment Methods
- Payment Terms
- Tax Rates
- Withholding Tax Rates
- Commercial Discounts
Next Gen Projects
Legacy Projects