I have serveral choice fields that are not required to have value, when I am using that in Microsoft Flow I am getting the following error
Unable to process template language expressions in action 'Send_an_email' inputs at line '1' and column '1752': 'The template language expression 'coalesce(body('Get_item')?['Column'],body('Get_item')?['Column']['Value'],'')' cannot be evaluated because property 'Value' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'.
I am using the coalesce forumla after I got the similar error by just using body('Get_item')?['Column']['Value'],
If I used the below formula I get the empty value if no value is chosen in SharePoint form.
But when there is a selection I get the value like below
I have also seen several post asking to use a condition action, using it would be very tedious and error prone as I have too many such columns like it.
Please let me knoe if you know how I could implement a logic for empty and non-empty fields
If none works then only option I am left with is to use default values for the choice fields.
I am not sure if this is what you are looking for, but I was able to check for an empty option column by using the empty() function/expression.
Does this solve your issue?
Could you please share a screenshot of your flow's configuration?
If you use the coalesce() expression within Microsoft Flow, the function would return the first non-null object in the arguments passed. If the Choice field is not selected with an option on your side, the Choice field would return empty, so the Value property could not be detected within the Choice field.
I agree with @ScottShearer's thought almost, you could also consider take a try to add a empty() function within your Condition box to check if the Choice field is empty.
In addition, I think your thought is available. You could consider take a try to set a Default value for your Choice field within your SharePoint list.
Stumbled upon this same issue myself.
Why would the connector assume that "" means 0, if I give no parameter to the field then its accepted as no value. How is the value '' different from a variable with the value ''? this is confusing flow dark magic that I keep having to waste time on..
Is there another workaround other than using empty() in a condition? Using conditions means that I now havet to maintain two sharepoint updates instead of just one.
I'm starting to get more and more confused, Flow is supposed to make simpler.. right?
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!