Sep 03 2021 07:58 AM
Hello
I would like to do following task:
1. Read a SharePoint List with a date-column (formatted as string)
2. Convert the data within this column into date (dd.MM.yyyy)
3. Compare it with the actual date
Do you have an example or a hint how to do that.
Every line of the sharepoint list should be read and the column compared with the actual date.
Thank you
JFM_12
Sep 06 2021 01:24 AM
Hi @JFM_12 ,
Using Flow you can fulfill your requirement
Here i used trigger option as When item created but if you don't want to use this option then there is Recurrence (Timer) option which you can set to trigger min/sec/hr option to trigger comparison.
for Formatting date (Compose step)
Sep 06 2021 07:29 AM - edited Sep 06 2021 07:30 AM
@suvi-15 your formatDateTime is incorrect as in Power Automate months are formatted with capital Ms. Lowercase ms are for minutes.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Sep 06 2021 07:35 AM
Sep 06 2021 07:36 AM - edited Sep 06 2021 07:36 AM
Hi RobElliot
Thank you.
I know changed it to MM but still does not work.
Thank you
Regards
JFM_12
Sep 06 2021 07:54 AM
Sep 06 2021 08:30 AM
@JFM_12 your first post said you were using a SharePoint list but now you are talking about getting the dates from Excel. Which is it as it affects the answer?
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Sep 06 2021 11:58 PM
Hi @JFM_12 ,
as you proceed this much i think you must be already using action for Excel(file may be present in Sharepoint Documents or actual loaction).
addDays('30-12-1899',int(items('Auf_alle_anwenden')?['Start Date']),'dd-MM-yyyy') in this what exactly you were trying to do because if i understood correctly [Start Date] must be date format and you are trying to convert it to int which results error.(The template language function 'int' was invoked with a parameter that is not valid)
at place of items('Auf_alle_anwenden')?['Start Date'] use integer value.
Sep 07 2021 05:01 AM
Sep 13 2021 12:30 AM