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 / PowerApps Collection t...
Power Apps
Answered

PowerApps Collection to CSV formatting: Keeping leading 0 in values in the column

(0) ShareShare
ReportReport
Posted on by

Hi,

I am facing a problem while exporting a collection data to csv.

There is a column having 0 as a first index value,. i.e., 08700010. While exporting to csv the zero are getting vanished from the column.
I tried this formula 
string(<Dynamic Content>)

It is working but i don't want the column to have <> symbols as prefix and suffix.

Is there any alternative way?

 

Thanks

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    Hi @Anonymous ,

    You did not say how you were exporting to CSV, but I suspect the issue is Excel interpreting the column as a number. If you open the CSV in Notepad, is the zero still there ?

  • Community Power Platform Member Profile Picture
    on at

    Hi Warren,

    I am sending collection as an to the flow and converting that to csv and provided it to the create csv table and creating file using the output.
    In the SharePoint the column is a single line text as the column can have alphabet and number combination.

    While I tried to open the csv file in the notepad I am able to see the 0 as prefix while I couldn't see the 0 as prefix in the csv. 

    Can we do something the power automate itself ?

     

    Thanks

  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    Hi @Anonymous ,

    I am a little confused - when you say open the csv file in the notepad I am able to see the 0 as prefix  if I am reading correctly, the CSV has worked (which I suspected it would). What are you opening it in where you cannot see the leading zero ?

  • Community Power Platform Member Profile Picture
    on at

    Hi Warren,

    open the csv file in the notepad I am able to see the 0 as prefix- This mean we can right click on any csv file and got to open with and select notepad and check the data inside right. I am able to see the 0as prefix over there.

     

    You can see the difference here.

    NotepadNotepadCSVCSV

  • Verified answer
    WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    @Anonymous ,

    Please go back to my very first post - Excel is interpreting it as a number when it opens the file. You need to put the number in Quotes "" in Power Apps before you send it to Excel.

     

    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.

    Visit my blog Practical Power Apps

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