# LocationService::findByExternalId()

URL: https://chugunov.pro/api-bitrix/location/service/locationservice/findbyexternalid/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс: [`\Bitrix\Location\Service\LocationService`](https://chugunov.pro/api-bitrix/location/service/locationservice/)
Модуль: Location.
Свойства элемента: method, public.

## Сигнатура

```php
public findByExternalId(string $externalId, string $sourceCode, string $languageId[, int $searchScope = \Bitrix\Location\Service\LOCATION_SEARCH_SCOPE_ALL ]) : Location|bool|null
```

## Описание

Находит местоположение по externalId

## Параметры

- `$externalId` `string` — обязательный
- `$sourceCode` `string` — обязательный
- `$languageId` `string` — обязательный
- `$searchScope` `int` — необязательный, по умолчанию `\Bitrix\Location\Service\LOCATION_SEARCH_SCOPE_ALL`

## Возвращаемое значение

`Location|bool|null`

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Location-Service-LocationService.html
