Hello,
Wondering if you are able to help me. I'm trying to use the CalendarPostItemV4 method.
When i hard code in the dates, it works. However, when i try to use the dates the user has selected (the user is required to input 2 dates using a date picker) it doesnt seem to work. I cant seem to figure out why, the calendar ID is for sure correct, as it works when i hard code in the dates. Here is the code i am using.
Set(_leaveStartString, Text(DateValue(LeaveEndDatePicker), "yyyy/mm/dd"));
Set(_leaveEndString, Text(DateValue(LeaveStartDatePicker), "yyyy/mm/dd"));
Office365Outlook.V4CalendarPostItem(
varUserCalendarId,
"Calendar subject text",
_leaveStartString,
_leaveEndString,
"UTC"
);
And this is the error i get: error 400, at least one property failed