Hi community,
Is there a way to Order/Sort the Get Items from a SP list based on the Day in a date?
I'm creating a HTML table of Birthdays for the Month and sending via email. This works fine but I was wondering if it's possible to sort the birthdays by Day before creating the table? My basic process is:
Get Items --> Filter Array (Get Items) to current Month only on Birthday field --> Create HTML Table (Filter Array)
I've tried a few things with my latest (failed) iteration of my Order By code being:
int(split(formatDateTime(Item().Date_x0020_of_x0020_Birth,'MM-dd'),'-')?[1]) asc
Error: " Unable to process template language expressions in action 'Get_items' ... cannot be evaluated because property 'Date_x0020_of_x0020_Birth' cannot be selected."
Any help would be great!
Thanks
PS I was able to use Date_x0020_of_x0020_Birth asc but this sorts oldest person to youngest person, which isn't what I want.