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 / Submit Choice to Datav...
Power Apps
Suggested Answer

Submit Choice to Dataverse

(0) ShareShare
ReportReport
Posted on by 789
Hello everyone,
 
I am trying to submit this DataCardvalue to a Dataverse choice column.
 
I am using this formula on the ComboBox:
 
Switch(
        DataCardValue30.Selected.Name,
        "Value1", ["Choice1", "Choice2", "Choice3", "Choice3", "Choice4"],
        "Value2", ["Choice1", "Choice2", "Choice3"],
        []
    )
 
I'm open to any other solutions or ideas anyone may have.
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    I am assuming what you have mentioned in your description is the Items property of the Combobox.
    Looks like you are trying to display different items in the Combobox based on DataCardValue30.Selected.Name. 
     
    If you wish to get the Choices from  the choice column in Dataverse, you can do something like this:
    Switch(
        DataCardValue30.Selected.Name,
        "Value1",
        Choices([@DataSource].choice),
        "Value2",
        Filter(
            Choices([@DataSource].choice),
            Text(Value) <> "Choice 4"
        ),
        []
    )
    Use the following if you are using Classic Combobox:
    Choices(DataSource[@choice])
    To Patch the column, you can use the following:
    Patch(
        DataSource,
        Defaults(DataSource),
        {choice: ComboBox.SelectedItems}
    )
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • Caleb62881177 Profile Picture
    789 on at
    Hi Nandit, I am getting any error of "Table doesn't contain any column of text type" using this formula.
     
     
    Switch(
        DataCardValue.Selected.Name,
        "Value1",
            Filter(
                Choices('Description (Table)'),
                Text(Value) <> "Choice1" && Text(Value) <> "Choice2"
            ),
        "Value2",
            Filter(
                Choices('Description (Table)'),
                Text(Value) <> "Choice3" && Text(Value) <> "Choice4"
            ),
        Choices('Description (Table)'
    )
     
     
     
     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard