How to use python sdk to send MS Teams scenario reporter message?

bantucaravan
bantucaravan Registered Posts: 4 ✭✭✭
edited July 2024 in Using Dataiku

Where is the documentation on `dataiku.scenario.messaging.ScenarioMessageSender.send()`? I want to use this method to send a MS Teams scenario reporter message.

from dataiku.scenario import Scenario
scenario = Scenario()
sender = scenario.get_message_sender(<sender name>)
sender.send(<what are the params?>)


Operating system used: Windows 10

Best Answer

Answers

  • bantucaravan
    bantucaravan Registered Posts: 4 ✭✭✭

    Thanks this was really useful and helped me get the basic functionality working! It seems like the html and markdown rendering rules for the message= param are slightly different than for the GUI message builder. markdown and html are rendered but the rules seem a little different. I can figure it out by trial and error but any thoughts on documentation on that?

  • NN
    NN Neuron, Registered, Neuron 2022, Neuron 2023, Circle Member Posts: 150 Neuron

    @bantucaravan
    While i havent used the API to send Ms-teams messages. I know that if you need to send anything which is formatted and not just simple texts then you would have to use the cards json formatted
    as given in this example
    https://doc.dataiku.com/dss/latest/scenarios/reporters.html#microsoft-teams-integration-setup

Setup Info
    Tags
      Help me…