> ## 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.

# CAPLfunctionIso11783ILsetmsgpriority

[Open topic with navigation](../../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/ISO11783/ISOInteractionLayer/Functions/CAPLfunctionIso11783ILsetmsgpriority.md)

**CAPL Functions** » **ISO11783** » **ISO11783 Interaction Layer** » Iso11783IL\_SetMsgPriority

# Iso11783IL\_SetMsgPriority

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

## Function Syntax

```plaintext theme={null}
long Iso11783IL_SetMsgPriority( dbMsg dbMessage, dword priority );
```

## Description

Sets the message priority.

## Parameters

* **dbMessage**: Message name as defined in the database
* **priority**: Priority of the message

## Return Values

* **0**: Success
* **\< 0**: [Error code](../../../CAPLfunctionsISOj1939ErrorCodes.md)

## Example

—
