Hello! I've been trying to imitate the functionality of Excel's WORKDAY() using Power Automate. I plan to add a Due Date to a newly added row.
So far, the flow looks like:
#####
Dataverse Trigger when a Row is Added/Modified
Initialize ReceivedDate from trigger's Received Date (Date only column) as String - Formula: formatDateTime(Received Date, 'yyyy-MM-dd')
Initialize DueDate as String - Empty
Initialize AddedDays as Integer - 1 (default)
Initialize IsHoliday as Boolean - false (default)
Conditional: DayOfWeek(ReceivedDate) == 5
• If True: AddedDays += 2
List Rows (of Holiday table)
• Select Rows: Name and Date
• Sort: Date
• Filter: ReceivedDate eq formatDateTime(AddedDays(ReceivedDate, AddedDays), 'yyyy-MM-dd')
Conditional: List Rows value != 0
• If True: Do Until (a loop that will add a day to AddedDays if new DueDate is Holiday, until it is not)
Compose new DueDate
Assign to Due Date of the Row
#####
My problem is List Rows's Filter does not work. It returns an empty body (even when I used a solid example).
One solution suggested is using a formatDateTime to ensure they have the same type, but it wouldn't work as well. The Dataverse table it tracks is a Date column (Date only), so there should be no problems when comparing it. How can I make the Filtering work?