Hi,
I've just started using the Power Platform, and I created a simple test cloud flow to copy data from an Excel file on SharePoint to a List. It uses a condition to determine if each record in the spreadsheet is new or to be updated and writes to the List using either Create Item or Update Item.
This worked fine with my test flow with sample data, however now I'm recreating it with real world data there are a lot of blank fields, which are breaking the flow. Fields of type string are fine, but fields set to Numeric and Date/Time in the SharePoint List are causing issue. I have tried using an expression within the Create Item and Update Item fields, but that doesn't work, maybe I have the syntax wrong? Also the columns in the Excel spreadsheet are not formatted, so blank values are set to "General".
I have tried variations of this:
if(equals(Item()?['some numeric field'], ""), 0, Item()?['some numeric field'])
Is it possible to use an expression like this?
I have also read that Conditions can be used to check for the presence of blank values in specific fields but that seems an awfully convoluted to have a different Create Item or Update Item for each missing column that may contain a missing value.
Are there better ways?