If a cell the flow is pulling from (excel file) is empty i want the SP list to have a blank entry but it won't allow it...
I tried this:
if(empty(items('Apply_to_each')?['Expiry date']),'',addDays('1899-12-30',int(items('Apply_to_each')?['Expiry date']),'yyyy-MM-dd'))
(Green bit works fine for filled cells, red is my issue..)
And got this:
The runtime value '""' to be converted doesn't have the expected format 'String/date'.
Any ideas how to write nothing or just skip?
Solved! Go to Solution.
Please take a try with @Expiscornovus 's solution, it is works and could solve your problem.
If your problem has been solved by @Expiscornovus 's solution, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!
In addition, if your 'Expiry date' column is Date data type , you can simplify your formula by the following way.
Select ISO 8601 for DateTime Format field in List rows present in a table action.
Then you don’t need to use addDays and int function to format the date in excel.
The formula can be changed to:
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!