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 Apps / Collection in Export t...
Power Apps
Unanswered

Collection in Export to Excel JSON

(0) ShareShare
ReportReport
Posted on by 1,265

I have the following in the OnSelect for a Save button.

 

Patch(
     EmployeeShort,
     varFormData,
     frmEEInfoEntry.Updates,
     frmHiringRequest.Updates
);
ClearCollect(
     colEmployee,
     varFormData,
     ShowColumns(
          EmployeeShort,
          "HRF_Pos_Dept",
          "HRF_Pos_HiringMgr",
          "HRF_Pos_SeniorLdr",
          "HRF_Pos_JobTitle",
          "HRF_Pos_NoPosFill",
          "HRF_Pos_BkFillSep",
          "HRF_Pos_Justification"
     )
)

 

I then have the following on another button...

 

ExporttoExcel.Run(
     JSON(
          colEmployee,
          JSONFormat.IncludeBinaryData & JSONFormat.IgnoreUnsupportedTypes
     )
)

 

For the ExporttoExcel.Run, I am receiving ALL columns and not the collection 'colEmployee'.  How can I limit the columns to the colEmployee collection that does work in the OnSelect above?

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    You could always just send all columns and use a Compose statement in the flow itself to limit the columns to what you need. Here is an image of my compose that essentially eliminates all the other columns from SP that I dont want to have to deal with or display in my excel sheet/email etc. 

     

    Screenshot 2023-05-04 at 3.37.31 PM.png

     

  • RJF61 Profile Picture
    1,265 on at

    Hi @mmollet Thanks for the response.   So in my case, I assume the Compose would be place between the Create CSV and Create File.  Regardless, one of my issues is that the Dynamic Values are not shown when I review per the bottom pic.  Is this a difference in running the Flow from Power App?

     

    RJF61_0-1683237093458.png

     

    RJF61_1-1683237306870.png

     

     

  • mmollet Profile Picture
    3,187 on at

    I actually have never ran flow from power apps I just launch it in the browser to keep things separate and on diff screens. Mine is inside of a loop so what I do is use the current items properties like so:

    Item()?[‘FieldName’]

    or if you have multiple loops

    item(‘Apply_to_each2’)?[‘FieldName’]

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard