Could you please help on the following error message? Thanks in advance .
I tried with two expression in Compose.
1
2formatDateTime(addDays('1899-12-30', int(items('Apply_to_each')?['LIB Global Item Status'])),'MM/dd/yyyy')
Hi @GUOGUO ,
You screenshot is blurry on my sceen but your formula should work.
formatDateTime(addDays('1899-12-30',int(items('Apply_to_each')?['LIB Global Item Status'])),'MM/dd/yyyy')
Do you have blank values in your date column? Please refer to this where you can use an IF() to ignore blank values.
if(equals(items('Apply_to_each')?['LIB Global Item Status'],''), '', formatDateTime(addDays('1899-12-30',int(items('Apply_to_each')?['LIB Global Item Status'])),'yyyy-MM-dd'))
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
Connect on LinkedIn
Hi,
Use the following function to convert excel date to usable date:
formatDateTime(addDays('1899-12-30',[Insert your date field here],'MM/dd/yyyy')
For sharepoint you should save dates like this 'MM/dd/yyyy' if you wants minutes and hours use 'MM/dd/yyyy HH:mm'
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
No worries you can. Watch this video to resolve your issue.
Also request you to please subscribe this channel.it helps me a lot
Thanks a lot ,Erric.
Could you please told me that what "Apply_to_each" in the formula indicate?
Hi @GUOGUO ,
When you use a List rows in table, it can return 0, 1 or even 100 rows. Therefore, you will always need to loop through the output. The Apply_to_each is a loop for each returned row from your List rows in table.
Please try this.
1) After your List rows in a table action, add a Compose action. It should look like this.
2) In your Compose, select your LIB Global Item Status column
3) Flow will automatically add a Apply for each loop for you.
If you run the flow now, the loop will iterate through each row within your Excel spreadsheet.
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
Connect on LinkedIn
Hi Erric,
Thanks for your reply.
Though , the list rows present in a table must be involved into a Apply to each component in my flow.
When i created "List Rows Present in a table ", the Apply to Each was added into the flow automatically.
Hi @GUOGUO ,
I can't see the top of your flow but if you have a Get Tables, then yes, you will have an Apply for Each before the List rows because there can be multiple tables. You will then have another Apply for Each (Apply for Each 2) after List rows.
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
Connect on LinkedIn
User | Count |
---|---|
27 | |
13 | |
12 | |
9 | |
9 |
User | Count |
---|---|
50 | |
30 | |
27 | |
24 | |
20 |