I am sending an email with a pdf attachment which has worked fine until today.
Today I started getting the following error message:
"Office365Outlook.sendEmailV2 failed: The data returned in the response is invalid. Response data should be a valid JSON object."
The email still works as it should.
Any ideas why this error message is being displayed?
This is the code I'm using.
UpdateContext({varPDFBlob: PDF(contPDFText_1,{ExpandContainers: true})});
If(
SendAssessmentEmail,
Office365Outlook.SendEmailV2(
If(
cboxBlockEmail_1.Checked,
varUserSettings.UserEmail,
Not(cboxBlockEmail_1.Checked),
varUserSettings.UserEmail & ";" & "another@email.com"),
$"text text text {frmAssessment_1.LastSubmit.NameOfPersonBeingAssessed}",
$"text text text",
{Attachments: Table({Name: "Name of attachment " & frmAssessment_1.LastSubmit.NameOfPersonBeingAssessed & ".pdf", ContentBytes: varPDFBlob})}
)
);