I've built a flow that creates a series of HTML tables from multiple lines of a SharePoint list. I've done this by initializing a variable, adding the HTML header, getting the list items, creating a table for each one, adding the HTML footer and then emailing the entire construct. This will eventually be automated, running daily, but for testing purposes, I run it manually.
It's been working fine, but the problem I've encountered is I'm returning the Created field from the SharePoint list and I can't seem to format the date and time into something reasonable.
I've tried using the FormatDateTime expression, but when I do, I don't have the option to select the dynamic content Created field.
I've tried a variety of ways to manually build an expression that would allow me to format the Created field data, but nothing works.
I looked at the code and the dynamic content that I'm trying to format is:
@{items('Apply_to_each')?['Created']}
I know I shouldn't wrap the entire thing in the FormatDateTime expression, but every version returns, "The expression is invalid."
I feel like I'm very close, but just can't figure out what I'm doing wrong.
I'm hoping this is something very simple that I'm just missing due to my inexperience.
Thank you, for any suggestions, or help, anyone can provide.
Outline of flow
Appending HTML code
Missing dynamic content