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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,296)