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 / How do you add data fr...
Power Automate
Answered

How do you add data from a data table to a web form in PAD?

(0) ShareShare
ReportReport
Posted on by 30

Hi!

 

I'd like to know how to add data from a data table to a web form. I know to use the "Populate Text Field on Web Page" activity; however, I am lost at that point. I've tried the following Input Text options:

 

  • %ExcelData['Employee ID']%
  • %ExcelData ['Employee ID']%
  • %ExcelData['Column7']%

 

Nothing seems to be working. Also, how exactly does the Read from Spreadsheet work? How does it know which sheet in a workbook to select? I have the data formatted as a table. Is that how?

 

Thank you in advance!

 

Brandon

  • Verified answer
    Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    PAD doesn't know what an Excel Table is, it reads whichever sheet is active. Most of the time you willl usethe "Read all available values from worksheet" option, with the advanced option "First line of range contains columns" option enabled.

     

    Since the resulting datatable is two-dimensional, you will need two indices %ExcelData[a][x]% OR the "For each" loop, which lets you process one one-dimesional slice %CurrentItem[x]% of the datatable at a time. The last option is easier to work with, and probably the one which makes the most sense to use.

     

    The x is in each either an integer index, or a header of the datatable. So your reference can look like either %CurrentItem[3]% which will be the fourth column (D) of the Excel data, or %CurrentItem['ID']% which will find the column with the ID header.

  • SynergiPartners Profile Picture
    30 on at

    Hey!

     

    Thank you for the quick response! Tragic that it only accepts the "active" sheet! I will ensure to use Power Automate to work with 1-sheet workbooks going forward.

     

    As soon as I read your response, I was like "UGH!" I completely forgot about using the For Each loop. I don't really use Power Automate too much. It's mainly a backup if our other product goes down. Thank you again for the response. I will mark it as the solution. Have a wonderful day!

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    There is a Set Active Excel Sheet action.

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 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard