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 / Creating an Export to ...
Power Apps
Answered

Creating an Export to CSV using Power Automate with Dataverse Choice Columns

(0) ShareShare
ReportReport
Posted on by 18

I am working on creating a csv export with Power Automate. I created a Collection from a Dataverse Table with the columns I needed.  The collection is showing the text of the choice, the csv file created is showing the numerical choice. I added a column to my collection (OPCO, a choice column) Here is my Power App Button OnSelect Formula.  The Power Automate works and has the column OPCO as the numerical value of the choice.  How can I fix this one issue?

Thanks, Eric

ekaplan323_0-1672080895652.png

 

ClearCollect(
colNewVitals,
AddColumns(
ColVitals,
"Company",
'Company Name',
"EntityType",
'Type of Entity',
"Business",
BusPurpose,
"FEIN",
FedTaxID,
"Country ",
Country,"OPCO",crf2e_opconame
)
);
ClearCollect(
colExportVitals,
ShowColumns(
colNewVitals,
"Company Name",
"EntityType",
"FEIN",
"Country",
"DateAcquired",
"CharterID",
"FormationDate",
"Non-USTaxID","OPCO"
 
)
);
ExportToExcel.Run(
JSON(
colExportVitals,
JSONFormat.IncludeBinaryData
)
)
Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @ekaplan323 ,

     

    Would you like to retrieve Choice value in Dataverse table? Please use the Text function to convert OptionSetValue to text:

    ClearCollect(
    colNewVitals,
    AddColumns(
    ColVitals,
    "Company",
    'Company Name',
    "EntityType",
    'Type of Entity',
    "Business",
    BusPurpose,
    "FEIN",
    FedTaxID,
    "Country ",
    Country,
    "OPCO",Text(crf2e_opconame)
    )
    );

     

    Best regards,

  • ekaplan323 Profile Picture
    18 on at

    Thank you _ Jeffer Ni!  I am new to Power Apps and have been struggling with this issue.  Moving forward again

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard