cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Removing Array variable if it is empty

I have a series of Arrays that I am creating and adding into a compose to get them showing in a line by line basis. On occasions though some of my Arrays are empty and if this is the case I am getting a blank line. Is there any way to remove this blank line altogether if the Array is empty?

 

Image 1 is my edit flow part where I list all my Arrays and image 2 is the output of the run where I have blank values.

 

sammybridge_1-1600781265097.png

 

sammybridge_0-1600781245979.png

 

3 REPLIES 3
Highlighted
Solution Specialist
Solution Specialist

@sammybridge - Why do you want to remove [] ? Are you intending to use it as string somewhere? can you please explain requirement?

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community
Highlighted

I have a series of arrays and I need each one to be on a new separate line. This then gets turned into a txt file and integrated into another system. I can’t have any blank lines in the document when it gets sent over to them which is why when any of my arrays are empty, I need to delete the blank space

Highlighted

What is the source of these arrays? Where is the array data coming from? Can you run a loop on that source?

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,634)