Hi there,
I have a collection like the following:
ClearCollect(
AllShoutOutTypes,
{
PrimaryId: 1,
Type: "Helpful Feedback",
Shoutout_Color: "#2E3192",
Description: "The Helpful Feedback shoutout badge is given to the person who gave critical insight on another person's work.",
Icon: Helpful,
Icon_Color: Helpful,
Selected: false
},
{
PrimaryId: 2,
Type: "New Perspective",
Shoutout_Color: "#F69679",
Description: "The New Perspective shoutout badge is given to the person who suggested a beneficially fresh view and/or direction to their teammates' work.",
Icon: New_Perspective,
Icon_Color: New_Perspective,
Selected: false
},
{
PrimaryId: 3,
Type: "Team Player",
Shoutout_Color: "#FFD700",
Description: "The Team Player shoutout badge is given to the student who collaborates well in group activities.",
Icon: team,
})
The field called type is a text column here. However, on my dataverse table it is a choice column. I am having trouble patching the text to a choice column. See below. The error I get is an OptionSetValue type error where it receives text.
Set(_sendShoutout, true);
If(_sendShoutout,
// Write to data source
Patch(ShoutOuts, Defaults(ShoutOuts),
{
'Student ID' : LookUp(BSKL_Users,ID = ComboBox3.Selected.ID),
Description: TextBox5.Value,
Type: TemplateGalleryList1.Selected.Type
}
)
)
Is there a way around this?