> For the complete documentation index, see [llms.txt](https://docs.theconfigteam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theconfigteam.com/prebilt-ewm/configuration-guide/configuring-prebilt-features/microsoft-teams-integration/create-an-sm59-http-connection.md).

# Create an SM59 HTTP connection

{% hint style="info" %}
**Note**

The *SM59* HTTP destination is typically set up by a SAP Basis or system administrator.
{% endhint %}

## Set up an HTTP connection in SM59 (type "G")

Enter the Basic Connection information:

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"><strong>Field</strong></td><td valign="top"><strong>Value</strong></td></tr><tr><td valign="top">RFC Destination</td><td valign="top">MSTEAMS</td></tr><tr><td valign="top">Connection Type (G)</td><td valign="top">HTTP Connection to External Server</td></tr><tr><td valign="top">Description</td><td valign="top">Microsoft Teams Webhook (Dev)</td></tr></tbody></table>

### Technical Settings:

Enter the target system settings - these can be found in the Power Automate “Post PB Message from Webhook” workflow:

{% hint style="warning" %}
***Important:***

*The values shown below are examples only and must not be copied directly. You must use the webhook URL from your own Power Automate flow to populate these fields.*
{% endhint %}

The webhook URL must be split into two parts when entered into SAP:

Host = the domain portion of the URL (everything from “https” to “.com”)

Path Prefix = the remaining part of the URL (everything after the domain, starting with /)

<table data-header-hidden><thead><tr><th width="111.5999755859375" valign="top"></th><th width="327" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"><strong>Field</strong></td><td valign="top"><strong>Value</strong></td><td valign="top"><strong>Comments</strong></td></tr><tr><td valign="top">Host</td><td valign="top">https://default*****************************.**.environment.api.powerplatform.com</td><td valign="top"><p>Webhook</p><p>HTTP URL</p><p>Domain</p></td></tr><tr><td valign="top">Port</td><td valign="top">443 (if HTTPS) or 80 for HTTP</td><td valign="top">The TCP port to connect to</td></tr><tr><td valign="top">Path Prefix</td><td valign="top">/powerautomate/automations/direct/workflows/******************************/triggers/manual/paths/invoke?api-version=1&#x26;sp=%2Ftriggers%2Fmanual%2Frun&#x26;sv=1.0&#x26;sig=******************************                       </td><td valign="top">The full path including query string, starting with a /, that gets appended to the host. This is the exact endpoint path of the webhook.</td></tr></tbody></table>

HTTP proxy options:

<table data-header-hidden><thead><tr><th width="359.60009765625" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"><strong>Field</strong></td><td valign="top"><strong>Value</strong></td></tr><tr><td valign="top">Proxy Host</td><td valign="top">e.g. 147.201.152.46</td></tr><tr><td valign="top">Proxy Service</td><td valign="top">e.g. 3128</td></tr></tbody></table>

{% hint style="info" %}
**Note**

Proxy settings can be left empty if no proxy is being used.
{% endhint %}
