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 / Microsoft Learning Pow...
Power Apps
Unanswered

Microsoft Learning Power App Tutorial

(0) ShareShare
ReportReport
Posted on by 169

I am working on a tutorial from Microsoft Learn Website Create an expense report app from start to finish in Power Apps .  I created a Choices called Choices Expense Report Status (as per the instructions) (name cr4fe_choicesexpensereportstatus).  On the Exercise - Write to the Expense Report section, we are writing logic to the Save as Draft button the following:

 

Set( VarExpense, Patch( 'Expense Reports', If( VarExpenseMode = "New", Defaults('Expense Reports'), VarExpense ), { 'Trip Destination': Txt_Destination_EditExpense.Text, 'Departure Date': Dte_Departure_EditExpense.SelectedDate, 'Arrival Date': Dte_Arrival_EditExpense.SelectedDate, 'Report Status': ['Report Status'.Draft], Traveler: LookUp( Users, 'Primary Email' = VarUser.Email ) } ) )

 

For the Report Status section, I am getting an error "The type of this argument 'cr4fe_reportstatus' does not match the expected type "OptionSetValue' (Choices Expense Report Status). Found type 'Table".

 

I tried 'Report Status':[Choices('Choices Expense Report Status'.Draft)], but still get the same error.

 

I have done this tutorial twice figuring I made a mistake but same issue.

Categories:
I have the same question (0)
  • billf24 Profile Picture
    169 on at

    Anybody?

  • Ray-in-ME Profile Picture
    4 on at

    Try this: 'Report Status': ['Choices Expense Report Status'.Draft],

    But there are other errors.  Very frustrating!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard