I've built an app to show and also be able to add tasks to a certain Planner with PlannerId.
Because I couldn't add a new Planner task with a task description in one onsave button transaction in Powerapps, I've tried using Powerautomate.
The scripts runs fine when I put a date in the Duedate field in my powerapp.
However, the value for DueDate can also be null (I put the Default value for the DuedateCalendercontrol to Blank()).
This generates an error in Power Automate. Can anyone help me with the correct syntax/formula/solution for the function in PowerAutomate?
I've tried this formula in Powerautomate in the DueDate field based on a combination of posts I've read about this subject, but it gives an error when I test it.
If(empty(triggerBody()?['Createatask_DueDateTime'],null,formatDateTime(triggerBody()?['Createatask_DueDateTime'],'dd-mm-yyyy')