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
Best Answer
-
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
Answers
-
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?
-
@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