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 / 'foreach' expression '...
Power Automate
Answered

'foreach' expression '@triggerBody()?['entity']?['Power BI values']' is of type 'Null'

(0) ShareShare
ReportReport
Posted on by
Hi, Whenever I choose an action, the Apply to each is automatically coming up.
When I choose Power Bi Data for Select an output from previous steps .. it is throwing an error like 'foreach' expression '@triggerBody()?['entity']?['Power BI values']' is of type 'Null'. The result must be a valid array.
I tried by giving - Power Bi Data, Power Bi Dataset, Entity, Body.. I am still facing the same issue. Can anyone help me on this
PowerBI_Applytoeach_Issue.png
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at
    Hi,
     
    Use the expression inside apply to each action to handle null value:
     
    if(empty(triggerBody()?['entity']?['Power BI values']),json('[]'),triggerBody()?['entity']?['Power BI values'])
     
     
     
    If this reply helps & solves the problem, pls mark it as accepted solution.
     
    Thanks,
    Manish Solanki
    you tube channel: Manish Solanki - YouTube

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard