> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionLookupProvidedService

# LookupProvidedService (obsolete)

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE

## Function Syntax

```plaintext theme={null}
providedServiceRef * LookupProvidedService(char[] path);
```

## Description

Searches for the specified provided service. The path must be complete including namespaces and both endpoints: `(Namespace::)+Service.providerSide[consumer,provider]`.

You can downcast the result to a concrete type, see the example.

## Parameters

* **path**: Path of the provided service.

## Return Values

The provided service. An uninitialized object if the service is not found, which will also be reported in the Write Window or as an error in test system (if the function is called in a test routine).

## Example

```plaintext theme={null}
providedServiceRef MirrorAdjustment mirrorSvc;
char path[200];
char service[50] = "Mirrors::MirrorAdjustment";
char consumer[20] = "CANoe";
char provider[20] = "LeftMirror";

snprintf(path, elcount(path), "%s.providerSide[%s,%s]", service, consumer, provider);
mirrorSvc = (providedServiceRef MirrorAdjustment) lookupProvidedService(path);
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [LookupProvidedEvent](CAPLfunctionLookupProvidedEvent.md) • [LookupConsumedService](CAPLfunctionLookupConsumedService.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.