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 / Patching with OptionVa...
Power Apps
Unanswered

Patching with OptionValueSet type | Not working

(0) ShareShare
ReportReport
Posted on by 14

I am trying to get the input from textinput 

 

BS0323_0-1700737230565.png

I have patch function added onSelect property of my button name "Add"

 

But whenever i try to use below formula, I get following error:

 

Patch('Global Numbers', Defaults('Global Numbers'),{Sourcing_Category:Add_Source.SelectedText.Sourcing_Category_Name}

 

"The type of this argument ‘cr63b_sourcecategoryname does not match the expected type ‘OptionValueValue’. Found type ‘Text'"

 

I am trying to fix this error since 3 days, no success yet 😞

I have the same question (0)
  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @BS0323 ,

    First of all you should be populating your dropdown list with the Choices for the Choice column you are looking to utilize from Dataverse.  Example, for my Cats table I have a Choice for Breed and the Items property of my dropdown field in the canvas app is:

    Choices('Gender (Cats)')

    This populates the dropdown with all the choice options for the user to select from...

    The Patch statement can then reference this directly like the following (simplified version of the patch) where both Gender and Demeanor are Choice columns and the dropdowns are populated from these choice values.

    Patch(Cats,
     Defaults(Cats),
     {Gender: Dropdown1.Selected.Value,
     Demeanor: Dropdown2.Selected.Value});

     

  • BS0323 Profile Picture
    14 on at

    Hi @dpoggemann ,

     

    Thank you so much, your solution actually worked!!!!

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard