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 / Syntax Yes/No Choice i...
Power Apps
Unanswered

Syntax Yes/No Choice in Collection (Dataverse)

(0) ShareShare
ReportReport
Posted on by 9

I'm using Collection to Patch records into a table where an event uses multiple locations so all the user has to do is select multiple locations from combos and I create 1 collection per location but I'm stuck on the Yes/No syntax which returns question marks for the Choice fields.  (and can anyone tell me what language to select when inserting a code sample?)

INPUT

ClearCollect(Loc1Record,
{eLuContact: dcvContact.Selected.cOwner,
eType: dcvEtype.Value,
eConfirmed: dcvConfirmed.Selected.Value,
eLuLocation: dcvLoc1.Selected.Location_id,
ePax: dcvPax.Text,
Edate: dcveDate.Value,
eStartDateTime: dcvStartDate.Value + Time(Value(dcvStartHour.Selected.Value), Value(dcvStartMinute.Selected.Value),0),
eEndDateTime: dcvEndDate.Value + Time(Value(dcvEndHour.Selected.Value), Value(dcvEndMinute.Selected.Value),0),
MultiLocation: MLdcv.Selected.Value,
eNotes: dcveNotes.Value,
eSetup: dcvSetup.Selected.Value,
eClearing: dcvClearing.Selected.Value,
eSetupNotes: dcvSetupNotes.Value})
 
OUTPUT
FC71_0-1709999447681.png

 

I have the same question (0)
  • AhmedSalih Profile Picture
    6,678 Moderator on at

    Hello, @FC71, the syntax to capture Choice field  of a SharePoint Choice Column as follows: (Note choices in SP are records)

     

     

    ChoiceColumnName: {Value: ComboBox.Selected.Value}

     

     

     

    Try this for your Formula:

     

     

    ClearCollect(Loc1Record,
    {
     eLuContact: dcvContact.Selected.cOwner,
     eType: dcvEtype.Value,
     eConfirmed: {Value: dcvConfirmed.Selected.Value}, 
     eLuLocation: dcvLoc1.Selected.Location_id,
     ePax: dcvPax.Text,
     Edate: dcveDate.Value,
     eStartDateTime: dcvStartDate.Value + Time(Value(dcvStartHour.Selected.Value), Value(dcvStartMinute.Selected.Value), 0),
     eEndDateTime: dcvEndDate.Value + Time(Value(dcvEndHour.Selected.Value), Value(dcvEndMinute.Selected.Value), 0),
     MultiLocation: MLdcv.Selected.Value,
     eNotes: dcveNotes.Value,
     eSetup: {Value: dcvSetup.Selected.Value}, 
     eClearing: {Value: dcvClearing.Selected.Value}, 
     eSetupNotes: dcvSetupNotes.Value
    })
    

     

     

     


     

    If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

    Visit my Blog: ahmedsalih.blog

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

  • FC71 Profile Picture
    9 on at

    Hi Ahmed, this didn't make any difference, possibly because it's Dataverse, I'll add the dataverse tag to my question and tags. Appreciate your help

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @FC71, that change things. I will move this question to the Dataverse Forum. In the Canvas app, can you check the collection and see if you see the choices values before the Patch?

    AhmedSalih_0-1710006134930.png

     


     

    If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

    Visit my Blog: ahmedsalih.blog

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard