Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Submit Choice to Dataverse

(0) ShareShare
ReportReport
Posted on by 745
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.
  • Caleb62881177 Profile Picture
    745 on at
    Submit Choice to Dataverse
    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)'
    )
     
     
     
     
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    Submit Choice to Dataverse
     
    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!
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard