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
Helper V
Helper V

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)

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.

View solution in original post

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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (85,805)