I am trying to find out how many days old from the Approved Date Column I have renamed the column to Approved_Date and it is still not working. It used to be named Approved On... I was not sure if the space was the issue. However, the below is not working in a compose once I get it working, I will set it to a variable I can read to see if it is past X number of days old.
div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(item()?['Approved_Date'])),864000000000)
What am I doing wrong...? it was working in the past and now that I am having to point it at a new folder, I am having issues getting it working. How do I see the name of a column? like if the name was Approve On - I seem to recall seeing some strange numbers representing the space...
InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '1' and column '25742': 'The template language function 'ticks' expects its parameter to be a string that represents a timestamp. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#ticks for usage details.'.