Hi,
I am currently building a canvas app to help me with daily planning on the various apps I use at home and at work, and the button I am working on at the moment returns an error on my Power Fx whilst trying to use the Outlook Tasks Connector because the DueDateTime value isn't a record.
This seems to be in conflict with what the documentation says where DueDateTime should expect a Date type according to Microsoft's documentation: Outlook Tasks - Connectors | Microsoft Docs
Code explained: Create a task where Subject = TextInput1_1, Folder ID = the ID which we lookup from the Dropdown1_1.SelectedText.Value which stores the label/friendly name of the Folder in a dropdown, and finally where I get the error DueDateTime = selected date from DatePicker1_1.
OutlookTasks.CreateTaskV3(
TextInput1_1,
{
folderId: (LookUp(
MyToDoFolders,
Name = Dropdown1_1.SelectedText.Value,
Id
)),
DueDateTime: DatePicker1_1.SelectedDate
}
);
"Incompatible Type. The 'DueDateTime' column in the data source that you're updating expects a 'Record' type and you're using a 'Date' type.
Can anyone advise if this is a bug, or whether I am doing something wrong please?
Thanks,
Aaron

Report
All responses (
Answers (