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 / Convert Get Item Outpu...
Power Automate
Suggested Answer

Convert Get Item Output to Array

(1) ShareShare
ReportReport
Posted on by 16
Is there any way to convert the output from SharePoint Get Item from an object to an array? I want to include the data as a table in an email. The only way I can find to do that is to use the Create HTML Table action, but that requires an array. Anyone know how to do that - or have another idea how to get the data from a single SharePoint item into a table to be sent in an email?
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
    Hi
     
    Add a Select action, to pick the columns you want in the order you want, also add column headers and add that to the Create HTML.
     
    The below is an example, but on the input put your Body/Value output of Get Items.
    For the Columns, add whatever Strings you want for the Column Header (on the left)
    in the right side, put in the dynamic properties, or you have to type item()?['Column Name'] on the right.
    Type item()?[''] in the expression tab, not directly into the input box or it will just see text, not the expression.
     
  • nathankidd Profile Picture
    16 on at
    Thanks but unfortunately that does not fix my problem. The Select action is also looking for an Array. Since I am using Get Item (not Get Items), i don't have an array. 
  • Suggested answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at
    Initialize an array variable and then Append the object to the Array. Use the Array to create your HTML Table.

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