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 / Cannot use patch funct...
Power Apps
Answered

Cannot use patch function to pass dropdown data selection to Excel

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have tried using both of the below on a 'Submit' button in my app.

Patch(Requests, Defaults( Requests ) ,{Space: Dropdown1.Selected})

Patch(Requests, Defaults( Requests ) ,{Space: Dropdown1.SelectedText})

 The error I get is "This type of argument 'Space' does not match the expected type 'Text'. Found type 'Record'.

 

The drop-down data is from a table in another excel file.

 

I would appreciate any help or advice.

Categories:
  • surajkv Profile Picture
    89 on at

    Hi @Anonymous 

    can you please try this

    Patch(Requests, Defaults( Requests ) ,{Space: Text(Dropdown1.Selected)})

    or
    Patch(Requests, Defaults( Requests ) ,{Space: Value(Dropdown1.Selected)})

    or
    Patch(Requests, Defaults( Requests ) ,{Space: Value(Dropdown1.Selected.Value)})

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your reply. I have tried both options and both return the same error:

    "Expected text or number. We expect text or a number at this point in the formula"

     

     

  • Verified answer
    PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Please try the below formula. Instead of value if you used some other column select that column name. 

     

    Patch(Requests, Defaults( Requests ) ,{Space: Dropdown1.Selected.Value})

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @PriyankaGeethik 

     

    I have edited my respone.

     

    When I swap 'value' with the column name it works fine.

     

    Thank you very much.

     

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard