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

Solved!
bantucaravan
Level 2
How to use python sdk to send MS Teams scenario reporter message?

 

 

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

0 Kudos
1 Solution
NN

Hi @bantucaravan ..
Till you get a more detailed reply.
There are some examples given in link for ms-teams with predefined channel and with webhook
https://doc.dataiku.com/dss/latest/scenarios/custom_scenarios.html#send-custom-reports

View solution in original post

3 Replies
NN

Hi @bantucaravan ..
Till you get a more detailed reply.
There are some examples given in link for ms-teams with predefined channel and with webhook
https://doc.dataiku.com/dss/latest/scenarios/custom_scenarios.html#send-custom-reports

bantucaravan
Level 2
Author

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?

0 Kudos
NN

@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

0 Kudos