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:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard