web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Replace empty split ou...
Power Automate
Answered

Replace empty split output with "N/A"

(0) ShareShare
ReportReport
Posted on by 29

Is there is easy way to replace the blank output of a split operate with different text.

 

 

For example "ERT Units" is ' ' than insert text "N/A"

Categories:
I have the same question (0)
  • schwibach Profile Picture
    2 Moderator on at

    sure... use the expression replace('youroldtextgoeshere',' ','N/A')

  • jfish303 Profile Picture
    29 on at

    That makes sense but I only want to do that on the output of the compose function "ERT_Units' not on the complete email output

     

    so replace('ERT_Units','','N/A')

     

    Would that work?

     

    Sorry I am super new to this 

  • schwibach Profile Picture
    2 Moderator on at

    replace(outputs('ERT_Units'),'','N/A')

     

    This: outputs('ERT_Units') inside an expression will reference a compose action namen ERT Units  (The space becomes an underscore

     

     

  • jfish303 Profile Picture
    29 on at

    Okay

     

    I am getting closer.  Here is my expression

     

    replace(outputs('ERT_Units'),'','N/A')

     

    The replace is just blank.  The raw output of ERT Units is "".  

     

    Any thoughts?

  • schwibach Profile Picture
    2 Moderator on at

    well, you need to get your dynamic input into the compose action named ERT Units and the expression in another Compose action.

     

    I don't know where the content is coming from in your flow so I cannot give you the entire code now.

  • jfish303 Profile Picture
    29 on at

    I'll have to work on this.

     

    One last question

     

    Is it possible to do something like 

     

    replace(output(ERT_#),'EOJ',(ERT_Units),'N/A'0

  • Verified answer
    schwibach Profile Picture
    2 Moderator on at

    Sure, you can use nested expressions..

     

    I suggest you get the first one to work in a compose action,

    then you do the next part in the second compose action.

    Once that is working you can replace the reference in the second action with the code from the first.

     

    But really, take it one step at a time.

  • jfish303 Profile Picture
    29 on at

    Okay I will keep working on this.  I have EOJ converted to NA. Now I just need to move it from one place to the other.  Thanks for your help

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard