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 / Need to assign each va...
Power Automate
Answered

Need to assign each value from current item to variable

(0) ShareShare
ReportReport
Posted on by 2
Hi all,
I am unable to assign this table content data to variable, when I run through for each loop current item will show first row data with comma seperator then I use text split which will convert to list index and row content but now I want assign %TextList[0]% to Allowed Amount the output I am getting %TextList[0]% request to help me to get the allowed amount 441.79
I have the same question (0)
  • Verified answer
    R.Felipe Profile Picture
    13 on at
    Hi, 
     
    Are you using Power Automate Desktop (with %VariableName% syntax)? or Power Automate Cloud (flows - with dynamic content and expressions)?
     
    Also, if you need the value from the Allowed Amount column for each row you use DataTable actions, for example:

    In your For Each loop, add the action > Get cell value from data table > DataTable: your table variable > Row: current loop index. > Collumn: Allowed Ammount (or column index 0)
     
    In the end, store the result in a variable like %AllowedAmount%...

    It gives you the correct value without extra parsing :) 
     
    BUT - if you already split into a list, make sure TextList is a List Type > USe Set Variable with %TextList[0]% - NO QUOTES!
     
    ---->  Splitting text should only be a fallback when you can’t use native actions. :)
     
    Good luck! 
    Rafael Felipe, Microsoft MVP.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard