Hey all,
I am using the outlook connector, as well as a sharepoint connector.
I am attempting to create an outlook event, while simultaneously putting that event into an SPlist.
My code shows no errors, then when I run it, it says "unknown error occurred".
Anyone have any idea what the problem might be? Do outlook and SPList not play nicely together?
Code is below!
Office365Outlook.V4CalendarPostItem(
LookUp(
Office365Outlook.CalendarGetTables().value,
DisplayName = "Calendar"
).Name,
SubjectInput.Selected.JobNumberAndName,
DateAdd(
DateTimeValue(StartDatePicker.SelectedDate & " " & StartHour.SelectedText.Value & ":" & StartMinute.SelectedText.Value & ddAPStart.SelectedText.Value),
TimeZoneOffset(),
TimeUnit.Minutes
),
DateAdd(
DateTimeValue(EndDatePicker.SelectedDate & " " & EndHour.SelectedText.Value & ":" & EndMinute.SelectedText.Value & ddAPEnd.SelectedText.Value),
TimeZoneOffset(),
TimeUnit.Minutes
),
"(UTC) Coordinated Universal Time",
{
body: Body.HtmlText,
location: SubjectInput.Selected.JobNumberAndName,
responseRequested: Checkbox3_1.Value,
requiredAttendees: Concat(
ComboBox3.SelectedItems,
Mail,
";"
)
}
);
Patch(
'Scheduling 4 App',
Defaults('Scheduling 4 App'),
{
JobSite: SubjectInput.Selected.JobNumberAndName,
Employees: ComboBox3.Selected.DisplayName,
StartDate: StartDatePicker,
EndDate: EndDatePicker,
Notes: Body
}
);
Reset(Body);
Reset(ComboBox3);
Reset(SubjectInput);
Reset(StartDatePicker);
Reset(EndDatePicker);
Reset(StartHour);
Reset(StartMinute);
Reset(EndHour);
Reset(EndMinute);
Reset(ddAPEnd);
Reset(ddAPStart)