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 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:
I have the same question (0)
  • 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard