Skip to main content
Version: 6 - Palatschinke

ConnectorTypeMSTEAMS

class connector_types.connector_type_msteams.ConnectorTypeMSTEAMS

Create connector cards in MS teams

Inputs

NameTypeDefaultDescription
colorstrNoneSpecifies a custom brand color for the card. The color will be displayed in a non-obtrusive manner.
link_buttonsdictNoneA dictionary containing [label]: [URL] pairs. For each pair an action button is added to the link card.
summarystrNoneThe summary property is typically displayed in the list view in Outlook, as a way to quickly determine what the card is all about.
textstrThe text property is meant to be displayed in a normal font below the card's title. Use it to display content, such as the description of the entity being referenced, or an abstract of a news article.
titlestrNoneThe title property is meant to be rendered in a prominent way, at the very top of the card. Use it to introduce the content of the card in such a way users will immediately know what to expect.
urlstrThe URL to your MS teams webhook.

Outputs

NameTypeDefaultDescription
execution_idintThe ID of the connection execution
messagestrThe ended message for the connection. If the connection ended with an error, the message will contain information about what went wrong
statusstrThe ended status for the connection. Either "success" or "error".

Constants

input_list = ['color', 'link_buttons', 'summary', 'text', 'title', 'url'] output_list = [] ssl_context_inputs = ['check_hostname', 'client_cert', 'client_key', 'server_ca'] version = 1

Methods

Example

import flow_api

def handler(system: flow_api.System, this: flow_api.Execution):
this.connect(
connector_type='MSTEAMS',
url='<Microsoft Webhook URL>',
title='message-title',
text='message-body',
link_buttons={
'button1-label': 'URL to call',
'button2-label': 'https://<workspace>.cloudomation.com/api/latest/webhook/<name>/call',
},
)
return this.success('all done')