Hey!
I am currently trying to set an Out of Office Message directly in PowerFX since unfortunately my flows do not use the users personal account so therefore I have to do it this way.
This is my function, dateFrom and dateTo are both from Date Pickers in European Format but I dont think this is causing the Issue.
Office365Outlook.SetAutomaticRepliesSettingV2(
{
automaticRepliesSetting: {
status: "Scheduled";
internalReplyMessage: "Test";
externalAudience: "All";
externalReplyMessage: "Test";
scheduledStartDateTime: {
dateTime: dateFrom.SelectedDate;
timeZone: DateTimeZone.Local
};
scheduledEndDateTime: {
dateTime: dateTo.SelectedDate;
timeZone: DateTimeZone.Local
}
}
}
));;
running it results in this error:
"body": {
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2022-01-14T09:34:43",
"request-id": "5ccb08ef-356f-469a-a446-ff17c4e38671",
"client-request-id": "5ccb08ef-356f-469a-a446-ff17c4e38671"
}
}
}
Thanks for the help already!