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 Automate / dropdown with boolean ...
Power Automate
Unanswered

dropdown with boolean value

(0) ShareShare
ReportReport
Posted on by

Try To Save Data (True or False) From DropDown To Add Row In Sql Server Database.

And Getting The Following Error

 

1.png

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Thanks alot i did it.

    but i have another problem:

    why collect function  do not work here

    but patch function work

    so i should have row in database and edit it and can not add new row with collect !!!

    Understand me

     

     

    Patch('[dbo].[Vendors]',{ID:Value(id.Text),StoreName:storename.Text,Mobile:mobile.Text,IsVerified:If(Dropdown1.Selected.Value="true",true,false)})

     

     

     

     

  • v-xida-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Could you please share more details about your SQL table?

    Which data type is the IsApproved column in your SQL table?

     

    The error message told that the value that you provided for the IsApproved column is invalid. The required data type of the IsApproved column is Boolean type, but you provide a Text type (String type).

     

    I have made a test on my side and please take a try with the following workaround:5.JPG

    The OnSelect property of Button control set to following formula:

    Collect('[dbo].[Vendors]',{Vendor_Id:TextInput1.Text,StoreName:TextInput2.Text,Mobile:TextInput3.Text,StoreAddress:TextInput4.Text,IsApproved:If(Dropdown1.Selected.Value="True",true,false)})

    Note: The IsApproved column is a bit type column in my SQL Table. In addition, the Items property of the Drop down control (related to IsApproved column) set to following formula:

    Dropdown1.Items=["True","False"]

    The PowerApps app works well as below:6.JPG

     

     

    On your side, please take a try with the following formula:

    Button.OnSelect=Collect('[dbo].[Vendors]',{ID:Value(id.text),StoreName:storename.text,...IsApproved:If(approved.Selected.Value="true",true,false),IsAvailable:...})

    Note: Same formula for IsApproved column is also adapted for Is Available column and IsVerified column.

     

    Best regards,

    Kris

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 Automate

#1
David_MA Profile Picture

David_MA 265 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

#3
trice602 Profile Picture

trice602 202 Super User 2025 Season 2

Last 30 days Overall leaderboard