cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
batvan276
Resolver I
Resolver I

Expression to display n/a if EMPTY and display original input if not blank

Hello Community, 

 

I keep getting an invalid expression and keep getting Blanks  with the below ; 

 

if(empty('Responses Comments'),'n/a','Responses Comments')
 
I am trying to input "n/a" in a Send Email Action if an approver did not input any Approver Comments. 
 
Appreciate any input. 
 
batvan276_0-1647264314936.png

14-03-2022 9-26-07 AM.png

 

 

 

 

 
 

 

 

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
batvan276
Resolver I
Resolver I

I hovered over Responses Comments and figured it out 

 

batvan276_0-1647347820665.png

 

if(empty(items('Apply_to_each_2')?['comments']),'n/a', items('Apply_to_each_2')?['comments'])

 

View solution in original post

3 REPLIES 3
batvan276
Resolver I
Resolver I

Tried the below ; 

 

if (empty(triggerOutputs()?['body/comments']), 'n/a', triggerOutputs()?['body/comments'])

 

n/a appears for both blank and also anything inputted in the Approver Comment field. 

 

 

batvan276
Resolver I
Resolver I

I hovered over Responses Comments and figured it out 

 

batvan276_0-1647347820665.png

 

if(empty(items('Apply_to_each_2')?['comments']),'n/a', items('Apply_to_each_2')?['comments'])

 

Hi @batvan276 

Glad that you have resolved your problem.

And thanks for your posting and sharing the solution in the forum.

Best Regards,

Lily

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,978)