Skip to main content
Version: 11 - TBD

ConnectorTypeMSTEAMS

class connector_types.connector_type_msteams.ConnectorTypeMSTEAMS

Create connector cards in MS teams

Input Schema

  • schema_version

    Type: string

  • mode

    Type: anyOf

Output Schema

Example

import flow_api

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