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 / Remove null from a com...
Power Automate
Answered

Remove null from a compose action

(0) ShareShare
ReportReport
Posted on by 3,295

Hello there,

 

I hope someone could provide a help :

 

I have a compose action and the output is something like this:

 

[
  "user1@email.com",
  null,
  "user2@email.com",
  "user3@email.com",
  "user4@email.com"
]
 
I need to send and email for each user and in my recipients value this is what I am getting:
 
[
  "user1@email.com;;user2@email.com;user3@email.com;user4@email.com;"
]
 
I guess I need to get rid of the null value and I am stuck.
 
Thanks in advance for any help.
 
Regards,
Categories:
  • Verified answer
    Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at

    The filter array action can be used to select all non-null values from the array:

    2021-11-04_00-03-37.png

    This is the sample output from the filter array action:

    2021-11-04_00-04-39.png

     

    Ellis


    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Sajarac Profile Picture
    3,295 on at

    Thank you very much for your prompt response. For the fx null is just type null or any other additional value in the fx?

  • Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at

    The filter array action is filtering out the null values, but you can filter on other values too:

    2021-11-04_00-44-53.png

     

    2021-11-04_00-47-27.png
    Ellis

     


    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Rashid_NPD Profile Picture
    22 on at

    this is not working in my case.

    Rashid_NPD_0-1639705747792.png

     

  • Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at

    Here is another way to filter out null values, and this seems to work as well:

    2021-12-17_08-39-04.png

     

    @Rashid_NPD  What results are you getting?

     

    Ellis

  • ttripp Profile Picture
    4 on at

    Does anyone know how to do the same exact thing, but with empty values? So not null but just, completely empty? 

     

  • Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at

    What you can do is return the value null or empty if the property does not exist. Please see the following short post for an explanation:  Solved: Re: Systematics for referencing properties - Power Platform Community (microsoft.com)

     

    Ellis


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

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 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard