cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hgallardo
Frequent Visitor

Collect a datetime from an excel row list, with a for statement

Hi guys I need Help on my Flow:

 

I trigger it manually and after, it gets all the rows from a specific table,

 

after it runs a 'for' statement collecting all values and i put a condition when its less or same from the 'end of quarantine' to 'today'

 

If its true, it will delete the same row as the end of quarantine that it collected, afterwards it gives info to someone.

 

The problem is that it does not execute anything and when i do a test the 'end and start of quarantine' gets random numbers, how do I collect the same date from the excel?

 

Here is my screenshot

 

excel:

 

hgallardo_0-1594048127827.png

 

 

hgallardo_1-1594048174070.png

 

Thanks to the community!

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @hgallardo ,

 

Could you please share a screenshot of the data in the excel table?

Does the date column in the excel table have the time? the date in excel table would be a string like "40443" in Microsoft flow currently

If the date column in the excel table don't have the time, you could format the string to date with type yyyy-MM-dd as @anupam8555  mentioned.

And hope the link below could be your reference:

https://powerusers.microsoft.com/t5/Building-Flows/Excel-file-to-list-flow-date-issue/td-p/279258

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
anupam8555
Continued Contributor
Continued Contributor

Hi @hgallardo ,

 

When you use Excel online(Business) it will return date column values in a numbers so you need to convert into relevant date format. 

Use below formula to get your date .  

addDays('1899-12-30',int(items('Apply_to_each')?['{YOUR EXCEL COLUMN Name}']))

 

I have already shared this idea on ideas platform. 

 

Thanks

(Please mark it as resolve if it helps you)

anupam8555
Continued Contributor
Continued Contributor

If you would like to vote for this feature , please use following link :

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Date-Format-Behaviour-Difference-Between-Ex...

 

v-alzhan-msft
Community Support
Community Support

Hi @hgallardo ,

 

Could you please share a screenshot of the data in the excel table?

Does the date column in the excel table have the time? the date in excel table would be a string like "40443" in Microsoft flow currently

If the date column in the excel table don't have the time, you could format the string to date with type yyyy-MM-dd as @anupam8555  mentioned.

And hope the link below could be your reference:

https://powerusers.microsoft.com/t5/Building-Flows/Excel-file-to-list-flow-date-issue/td-p/279258

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi there is the data of the excel:

hgallardo_0-1594644213501.png

It gets the "fin quarentena" date

 

 

also it show me a random string of numbers "44043" like.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,869)