cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Flow workflow if and Empty expression

Hi All,

I'm building a flow workflow that pushes answers from a Microsoft form into a sharepoint list (based on the template)

It works well when pushing answers straighforward into sharepoint list.

But, as I have some answers that can be null in the form, I would like to push a value in case of null answer ("Not answered")

I'm trying to use the expressions tab in flow.

So, on the sharepoint part of the workflow, where I link answers to fields of sharepoint list, i'm trying to put this:

 

if(empty(body('Get_response_details')?['r0bd8b43a180c454da240a1e81d15d2ad'], "Not Answered",body('Get_response_details')?['r0bd8b43a180c454da240a1e81d15d2ad'])
 
For me, "if" is waiting for true or false, the empty(body('Get_response_details')?['r0bd8b43a180c454da240a1e81d15d2ad']
return True, so the "not answered" value should be used, else, it gets the value of body('Get_response_details')?['r0bd8b43a180c454da240a1e81d15d2ad']
 
But I cannot validate the query because of "invalid query" error. Any ideas ?
Thanks for your help.
1 REPLY 1
Anonymous
Not applicable

got it, it's all about double quotes...

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (2,753)