You could take a try with expression below:
I have made a test on my side to create a flow as below:
The expression in the Compose 2 as below:
The flow would run successfully as below:
Thanks for the response, but the solution you provided does not work when pulling values from a SharePoint list and then placing them into a CSV.
To restate the problem, I want the csv export to look like this (for example):
Smith,John,16 Main St.,Portland,ME,"04101",Anesthesiologist, etc.
(I need the zip code in quotes so preceeding zeros will not be stripped off when opened in excel. )
The solution you provided casues this result:
Smith,John,16 Main St.,Portland,ME,"""04101""",Anesthesiologist, etc. (this does not render right in excel)
I've pasted my test flow below to demonstrate. The value in the sharepoint list is simply 04106.
Would you please add a () to the value as below:
Or you could add a space before the value as below:
the Flow I'm trying to build gets data from SharePoint and uploads a CSV to SFTP where the file will be processed by one of our Finance systems. This systems expects every value in the CSV to be surrouned by double quotes so
I open the CSV in Notepad, rather than Excel to see the format.
My Flow looks like this, and in the Concat I've tried setting a value to:
This results in """1""","""Name""" rather than "1","Name"
I found this thread looking for an answer to the same problem. The idea above to use brackets instead gave me an idea:
Use a compose to define a string that you know will never appear in your data. It can be as long or short as you like, but it must be completely unique. The longer you make it the less likely it'll appear in your data. In my example I chose ^&
I tried both wrapping the value in a concat() function and also just by clicking the dynamic content in the Value box.
Next, replace the string with a quote throughout the whole CSV output:
In a test run, it seems to work for both methods of doing concat() and also just clicking the dynamic content:
This is how Excel behaves when importing CSV files, but there is an easy solution. I posted the exact solution on this thread a few days ago:
Basically you insert a tab character before the value and then Excel will treat it as a text column. No need to insert quotes etc.
Just create a variable called charTab and copy and paste a tab into it. Then put that before your Zip code column and when you do the Excel import it will not be interpreted as a number.
While looking for a solution to this same problem I found this post.
Here is the solution I found:
The solution was found from this helpful solution:
This caused excel (and apparently google spreadsheet) to force the value in the cell to literally:
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.