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 / Dynamic Array Index in...
Power Automate
Unanswered

Dynamic Array Index in Condition

(0) ShareShare
ReportReport
Posted on by 10

Morning!

 

Just started so I am trying to wrap my head around this issue:

 

->get string from email subject

->get worksheet (static)

->get tables (dynamic based on worksheet)

->check if any table's name is in the subject

->if yes, get first empty row

->populate first empty row with dynamic values from email

 

The issue that seems to be making the flow fail is dynamically passing the first empty row to update a row.  I tried setting null as a value, following steps for indexing all empty rows and returning the first, and a few other things.  Thoughts? 

stuckonafeeling_0-1719578727396.png

stuckonafeeling_1-1719578761270.png

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Update a row action should be inside a loop, since you are referencing an item from the action above.

    Are you able to post a screenshot with your Update item action expanded?

     

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @stuckonafeeling 

     

    still confused on what you meant by - I tried setting null as a value, following steps for indexing all empty rows and returning the first, and a few other things.

     

    as @SudeepGhatakNZ  said, kindly expand the update row action to get more idea. Also i feel that since you referencing empty row in your mentioned steps- does the row with empty row (means no data in any columns) was added earlier ? if not- it was better to use add a row action to add a row with details making things simple 🙂

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • stuckonafeeling Profile Picture
    10 on at

    @Nived_Nambiar @SudeepGhatakNZ 

     

    I am happy to use a simpler method.  I tried just add a row but it seemed that because I used a dynamic reference for the table to look at, it would not allow me to use null.

     

    Get a row:

    stuckonafeeling_0-1719833868488.png

    Update a row:

    stuckonafeeling_2-1719833956268.png

    Happy to explain anything further or provide more screen shots.

     

    Thanks!

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @stuckonafeeling 

     

    one thing to ask, if from column is empty/null , does it mean that other column values/all columns are also empty ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • stuckonafeeling Profile Picture
    10 on at

    @Nived_Nambiar Yes.  The table is blank unless it is populated by this Flow.

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @stuckonafeeling 

     

    Then what i did not understand is what is problem which you are facing with add row to table ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • stuckonafeeling Profile Picture
    10 on at

    @Nived_Nambiar 

    The issue is that everything that I have tried to put in for row has given me an error when I try to add a row.  I am probably missing something simple, but I just want it to add data from the email to the first empty row in the table.  What goes in the row entry below?

    stuckonafeeling_0-1719861695648.png

     

  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @stuckonafeeling 

     

    coming to row field- you have to add the json object which i see you have added in update a row.

    Nived_Nambiar_0-1719888318944.png

     

    Now also i would recommend to use table id instead of name dynamic content in table field.

     

    See whether that helps !

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • stuckonafeeling Profile Picture
    10 on at

    Table ID seems to have done the trick.  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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard