RE: Power Automate flow to send email connect d365 sales
Hi,
The direction is right.
However, there are some details which should be modified.
- The format of the due date should be adjusted as something like:
formatDateTime(outputs('Get_a_row_by_ID')?['body/duedate'],'MM/dd/yyyy')
in order to compare them.
The part - outputs('Get_a_row_by_ID')?['body/duedate' is the dynamic content you're using in the screenshot, so it do not need to type manually.
Also, the format of today’s date should be:
formatDateTime(utcNow(), 'MM/dd/yyyy')
- In the step - Get a row by ID, the row ID should be filled with the unique identifier of the entity you’re using instead of the due date. Here is an example of opportunity entity.

- The “is less than or equal to” means that even if it has overdue, it will still send an email to the contact you have filled in. If you just want to send an email only once on the day of the overdue, you should select "is equal to". This is determined by your requirements.