Hello Community,
I’ve been working on a Power Automate flow designed to help us monitor activities related to new records created in our Dynamics 365 CRM. The goal is to automatically notify team members if there has been no activity for 2 weeks after a record is created.
### Flow Overview:
- Trigger : The flow triggers whenever a new record is created in Dynamics 365 CRM.
- Logic : It checks the following fields: `CreatedOn`, `Last Modified On`, and `Last Activity Date`. If no activity has occurred within 14 days, the flow sends an email notification to the team.
### The Issue:
While setting up the conditions to compare `CreatedOn` and `Last Modified On` fields with the expression `addDays(utcNow(), -14)`,
I encountered an error:
Unable to process template language expressions for action 'Condition_for_2_week_reminder' at line '0' and column '0': 'The template language function 'lessOrEquals' expects two parameters of matching types. The function was invoked with values of type 'Null' and 'String' that do not match.'
I would greatly appreciate any insights or suggestions from the community.
Below are the Attached Photos of my flow.