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 / Exporting columns in C...
Power Apps
Answered

Exporting columns in CSV without arranging it alphabetically I want to arrange

(0) ShareShare
ReportReport
Posted on by 70

Raj2014_0-1662014584057.png

ForAll(
Gallery1_6.AllItems,
Collect(
ColSummery,
{
'Requestor Name':ThisRecord.Name,
Designation: ThisRecord.Designation,
'Sum of Approved hours':ThisRecord.Sum_No_of_Hours,
'Target Hours':ThisRecord.lblEmployeeManager_15.Text,
Location:ThisRecord.Location,
Department:ThisRecord.Department,
'Remaining Hours':ThisRecord.lblEmployeeManager_16.Text,
'Pending Hours':ThisRecord.lblEmployeeManager_20.Text,
'Rejected Hours':ThisRecord.lblEmployeeManager_18.Text
}));
Launch(KGS_Summary.Run(JSON(ColSummery,
JSONFormat.IncludeBinaryData & JSONFormat.IgnoreUnsupportedTypes
)
).filelink
);
Clear(ColSummery)

Power automate I have created 

Raj2014_0-1662030185337.png

 

 

 

Categories:
  • Raj2014 Profile Picture
    70 on at

    When I have used the variable 

    Raj2014_2-1662030543876.png

     


    ForAll(
    Gallery1_4.AllItems As aExport,
    Collect(
    ColViewALL,
    {
    Name: aExport.Name,
    'No. of hours spent on above task': aExport.'No. of hours spent on above task',
    BU: aExport.BU,
    QualityTask: aExport.QualityTask,
    Activity: aExport.Activity,
    'Core Function': aExport.'Core Function',
    Status: aExport.Status.Value,
    'Approver Name': aExport.'Approver Name',
    'Employee ID': aExport.'Employee ID',
    Location: aExport.Location,
    Designation: aExport.Designation,
    Department: aExport.Department,
    'Created By': aExport.'Created By'.DisplayName,
    Date: aExport.Date
    }
    )
    );
    Set(
    varExportFile,
    Concat(
    ColViewALL,
    Name & "," & 'No. of hours spent on above task' & "," & BU & "," & QualityTask & "," & Activity & "," & 'Core Function' & "," & Status & "," & 'Approver Name' & "," & 'Employee ID' & "," & Location & "," & Designation & "," & Department & "," & 'Created By' & "," & Date & Char(10)
    )
    );
    KRCExportExcel.Run(varExportFile)

    I'm greeting error 

    Raj2014_0-1662030337930.png
    Powerautomate also running failed 

    Raj2014_1-1662030404141.png

     

     

  • Verified answer
    Raj2014 Profile Picture
    70 on at

    I got the solution 

    Raj2014_0-1662032881110.png

    item()?['rbp_master_id']

  • NurNida Profile Picture
    213 on at

    THANK YOU!.. it solved my problem too.. 

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 Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard