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!
Solved! Go to Solution.
for those wondering
timeZone: DateTimeZone.Local
is not Supported needs to be DateTimeZone.UTC
-
Unknown Error is most likely caused because my Outlook Account has to have some Permission limitations.
*bump*
for those wondering
timeZone: DateTimeZone.Local
is not Supported needs to be DateTimeZone.UTC
-
Unknown Error is most likely caused because my Outlook Account has to have some Permission limitations.
@lucar2k it worked for me when I define the local timezone :
Office365Outlook.SetAutomaticRepliesSettingV2(
{
automaticRepliesSetting:
{
status: "Scheduled",
scheduledStartDateTime: { dateTime : _startTimeLocal, timeZone : "(UTC+04:00) Port Louis" },
scheduledEndDateTime: { dateTime : _endTimeLocal, timeZone : "(UTC+04:00) Port Louis" },
internalReplyMessage: InternalMessage.HtmlText,
externalAudience: "All",
externalReplyMessage: ExternalMessage.HtmlText
}
}
I would never have gotten there however without your help, thanks a lot for the parameters for this action. 👍
Hey!
Good to know thanks for updating on that - the TimerZone stuff was a bit weird yeah.
Glad that the post helped!
Good Luck with your Project 😊
User | Count |
---|---|
162 | |
96 | |
76 | |
72 | |
59 |
User | Count |
---|---|
213 | |
166 | |
97 | |
95 | |
77 |