---
title: "get_external_connection_by_id method"
url: "https://reference.aspose.com/cells/python-net/aspose.cells.externalconnections/externalconnectioncollection/get_external_connection_by_id/"
product: "Aspose.Cells for Python via .NET API References"
---


## get_external_connection_by_id(self, conn_id) {#int}

Gets the ExternalConnection element with the specified id.


### Returns 


The element with the specified id.


```python

def get_external_connection_by_id(self, conn_id):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| conn_id | int | external connection id |



### See Also
* module [`aspose.cells.externalconnections`](../../)
* class [`ExternalConnectionCollection`](/cells/python-net/aspose.cells.externalconnections/externalconnectioncollection)
