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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add a row into a table
Power Automate
Answered

Add a row into a table

(0) ShareShare
ReportReport
Posted on by 38

Hi,

I'm iterating in a json output and adding the values as dynamic content toa row for each iteration.

However, some values are empty. For example one row can look like this: a, , c,d...

IS there a way to handle it or I have to make a condition for each field whether it is empty, and if yes update the value with something random?

Please advise,

Thanks

Categories:
I have the same question (0)
  • Hiwm Profile Picture
    38 on at

    Another important point is that I can't even initialize a variable to check whether it is empty or not as it is a loop...

    any ideas?

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Hiwm 

     

    When you map the array variable you could map in two different ways

     

    a[0] expects the value always. Its like mandatory. If the value is not present flow will fail.

    a?[0] here its like an optional value. If the value is present it will map the value. If not it will be null.

     

    Thanks

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard