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 / Create HTML table from...
Power Automate
Unanswered

Create HTML table from Filter array output: The 'from' property value in the 'table' action inputs is of type 'Object'. The value must be of type 'Array'.

(0) ShareShare
ReportReport
Posted on by 41

Trying to filter all items that confirm to specific criteria using OData query in Get Items. And then further filtering it using a filter array (advanced options to club two filters here with or). Now I need to create an HTML table from th output and then send the entire HTML table as a summary in one email; also send out separate emails to every email mentioned within the html table. created the following but getting the error: 

suman_sa_0-1671470646663.pngsuman_sa_1-1671470722110.png

could someone advise, please?

 

BR,.

SS

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @suman_sa ,

     

    I noticed that in the operation 'Create HTML table' you used 'current item', this dynamic content is an object, which is the cause of the error.

     

    If you want to create an html table, I suggest you put 'Create HTML table' outside ‘Apply to each’, or use brackets to turn 'object' into 'array'.

     

    I made a sample for you:

     

    Create a list in sharepoint.

    vxiaochenmsft_0-1671507184799.png

     

     

    Create an HTML table outside of 'Apply to each'.

    vxiaochenmsft_1-1671507184801.png

     

    vxiaochenmsft_2-1671507184803.png

     

     

    The output is all filtered data.

    vxiaochenmsft_3-1671507184803.png

     

     

    Use brackets outside the current item

    vxiaochenmsft_4-1671507184805.png

     

     

    Only the current item is output.

    vxiaochenmsft_5-1671507184806.png

     

     

    The above two methods are selected according to your actual needs.

     

    Best Regards,

    Wearsky

  • suman_sa Profile Picture
    41 on at

    Thank you @v-xiaochen-msft for your suggestions. 

    1) am not adding that apply to each for the Create HTML table action. Once I add custom headers, PowerApps automatically add the Apply to each condition.  (not sure how to get rid of this) - my attempt is to directly add the Create HTML table step after the Filter array. and then do a bifurcation(?) - need to send a a summary email (with all items from the html table) to an admin account  and then individual email with each item to each email address in the body of the HTML table. Does this help you provide any more suggestions, please?

     

    BR

    SS 

  • v-xiaochen-msft Profile Picture
    on at

    Hi @suman_sa ,

     

    You can try using two 'Create HTML table' and 'Send an email' actions.

     

    I made a sample for you.

    Create a list, ‘Text’ is a text type column and ‘Person’ is a person type column.

    vxiaochenmsft_0-1671517188393.png

     

     

    Create list.

    vxiaochenmsft_1-1671517188396.png

     

     

    In the next step of the filter operation, create an HTML table. Value in customization uses expression.

    item()?[‘column’]

    Once created, send to the admin account.

    vxiaochenmsft_2-1671517188397.png

     

    vxiaochenmsft_3-1671517188400.png

     

     

    The same operation is put into 'Apply to each'. Items are sent to each email.

    vxiaochenmsft_4-1671517188402.png

     

     

    Save and run flow.

    The admin account receives a message that contains all items.

    vxiaochenmsft_5-1671517188403.png

     

     

    Other emails receive their respective items.

    vxiaochenmsft_6-1671517188403.png

    Best Regards,

    Wearsky

  • suman_sa Profile Picture
    41 on at

    Thank you, However, when I try creating the first html table after filter, powerapps applies a condition/two there.. I am not sure how to get rid of these. 

    suman_sa_0-1672161894850.png

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard