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

Community site session details

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

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
    Re: Replace empty split output with "N/A"

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

  • jfish303 Profile Picture
    29 on at
    Re: Replace empty split output with "N/A"

    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
    Re: Replace empty split output with "N/A"

    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
    Re: Replace empty split output with "N/A"

    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
    Re: Replace empty split output with "N/A"

    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
    Re: Replace empty split output with "N/A"

    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
    Re: Replace empty split output with "N/A"

    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
    Re: Replace empty split output with "N/A"

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard