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 / How to export data fro...
Power Apps
Unanswered

How to export data from the Canvas app to Excel with cell style.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a gallery with data, the cells of which are colored according to some condition.
Screenshot 2023-10-19 193923.png
Now I am exporting data using pcf control made by yashag2255. But I need that, along with data import, according to the same condition, cells in Excel are colored.

NikitaManzhosov_0-1697733619287.png

And the result should be something like this:

NikitaManzhosov_1-1697733711721.png

Is there any option on how to do this?

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @Anonymous , 

    I think you should be able to do that with the "Run script" action of the Excel Online (Business) connector. But it will not go hand on hand with your PCF component. The PCF component will simply export the content in excel. The option that I am suggesting here is that you store the exported excel in SharePoint and then from there use Run Script action and do the rest of things.

     

     Here are a few links that might be helpful to learn about using Office Scripts with Power Automate:

    Announcing support for Office Scripts in the Excel Online (Business) connector
    Run Office Scripts with Power Automate
    Call scripts from a manual Power Automate flow
    Pass data to scripts in an automatically-run Power Automate flow

     

    You can first try to use the recorder to record the set cell color action to learn how to do that with Office Scripts code. Then add you own script logic like matching cells, etc. After you have tested your code within Excel Online, you can add the "Run script" action to your flow.

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard