---
updatedAt: 2026-02-10T16:12:45.000Z
---

# requestResizeSoftphoneHeight

### requestResizeSoftphoneHeight

<u>**Mandatory**: No</u>

**Description**: The CRM Connector application may change its dimensions in both height and width under certain circumstances.

To facilitate this, whenever the CRM Connector application needs to change its size, it will issue a *requestResizeSoftphoneHeight* message. This message must be intercepted by the client application to execute the resizing action, as it is necessary for the client application.

***Example***

```javascript
// For publishMessage method explanation see Getting started.
const sendCRMData = () => {
  // Your own implementation to resize the softphone based on the CRM.
  publishMessage(clientIframe, CRM_CONNECT_ORIGIN, 'ClientAppMessage', 'shoftphoneHeightResized', <data>);
}
```

* ***clientIframe*** represents the iFrame where the application is embedded. usually we can set an id and access in this way

```javascript
// This is a dummy id. You can use another one if you see fit.
clientIframe = document.getElementById('crmConnectIframeId');
```

* ***CRM\_CONNECT\_ORIGIN*** represents the URL or origin of the CRM Connector application. For a more explicit documentation see ***Getting started***.

* ***data*** represents the updated height after which the resizing was done

****Note:*** For each message sent by CRM Connector that needs to be intercepted by the client application, ensure there is a ***mechanism in place to verify and process the received messages.****

## Message formats

### CRM Connector

```json
{ "type": "CRMConnectMessage", "action": "requestResizeSoftphoneHeight", "data": <crmConnectorDataObject> }
```

#### CRM Connector data object format

```json
{ 
  "height": <number> // Numerical value representing the height 
}
```

### Client Application

```json
{ "type": "ClientAppMessage", "action": "shoftphoneHeightResized", "data": "<height>" }
```