Hi Maria
Yes that is the integration I am using. The code is from the app that shows it is sending HTML format when sending the mail. When I run the playbook Exchange Online Send Message - Example (PB). When I enter the body text: I get email body in the screenshot...
Hi,<br>Thank you for reporting suspicious content, the email will be analyzed.<br>We'll let you know the outcome.<br>Kind regards,<br>cyber team

------------------------------
AnnMarie Norcross
------------------------------
Original Message:
Sent: Tue July 09, 2024 01:57 AM
From: Maria Czapkowska
Subject: New line in email
The playbook crashed when trying to run it because of unknown character <br>
Ar you sure we're talking about the same app? Here's the one I'm using it doesn't have a field "message_json" and I don't see anything about it in the documentation.
------------------------------
Maria Czapkowska
------------------------------
Original Message:
Sent: Mon July 08, 2024 11:29 AM
From: AnnMarie Norcross
Subject: New line in email
The Exchange Online app does send HTML. What is the error you see when you use <br> ?
# Create the message in the required json format message_json = {"message": {"subject": subject, "body": {"contentType": "HTML", "content": body}, "toRecipients": recipient_list}, "saveToSentItems": "true"}
------------------------------
AnnMarie Norcross
Original Message:
Sent: Mon July 08, 2024 01:17 AM
From: Maria Czapkowska
Subject: New line in email
I appreciate that you're trying to help, but you are wrong. Microsoft Exchange Online app doesn't understand html and adding a break line caused an error, I tried it before posting the question.
------------------------------
Maria Czapkowska
Original Message:
Sent: Mon July 08, 2024 12:50 AM
From: Dũng Đặng
Subject: New line in email
Hi Maria Czapkowska,
I think you are misunderstanding how to transmit data. For mail, it is mostly transmitted as HTML body. In this case, if you want to break the line, you can try replacing "/n" with "<br>".
------------------------------
Dũng Đặng