My data is in Dataverse in a table called CLIENTS.
Step 1: Recurrence
Interval: 1,
Frequency: day,
Time Zone UCT+2
no problem here
Step 2: List Rows
Table Name: Clients
Select Columns: cr40f_name, cr40f_dob
Filter Rows: cr40f_activeclient eq true and cr40f_dob ne null
no problem here (I think)
Step 3: Initialize Variable
Name: DOB
Type: String
Value: 01-Jan
Step 4: Apply to each
Select an output from previous steps: body/value
Not sure about this one
Step 5: Set Variable
Name: DOB (variable initialized in step 3)
Value: formatDateTime((items('Apply_to_each')?['cr40f_dob']), 'dd-MMM')
Is this correct???
Step 5: Condition (to check whether birthday is today)
Expression: DOB (variable) is equal to formatDateTime(utcNow(),'dd-MMM')
Is this correct???
If true: send an email to myself.
If not true, no further action.
The flow runs without error, but doesn't send the email and there is a client with a birthday today.
Please help. This is driving me around the bend. It should be so **bleep** simple, but somehow I am missing something.
I wish I could run a flow in debugging mode to see the result of each step!