Showing results for 
Search instead for 
Did you mean: 

Error adding optionset to collection

ClearCollect(varStatusDropdown, {Values: "All"});
Collect(varStatusDropdown, {Values:'OneEng Candidates'.GeneralStatus})


{Values:'OneEng Candidates'.GeneralStatus} is returning a table and inserting it into the "Values" column. Whereass "All" is just a text field, so I understand the error.


How do I add the options on an optionset to a collection? 

Impactful Individual
Impactful Individual

Concat() them and when u unpack them, Split() them

ClearCollect(varStatusString, {Test:Concat(varStatus, Result & ", ")});


That turns it into a string:


Screen Shot 2020-07-28 at 4.05.11 PM.png

 ClearCollect(varStatusList, Split(varStatusString.Test, ","))


That is returning an error, saying its a datatype table. I thought .Test would return a string? 

Edit- Nevermind, I needed to select the first Item in the table and then access the Value. I was trying to access the .Test which returned a column (ie table)

Impactful Individual
Impactful Individual

is that what you wanted

Hi @morall :

Is your problem solved?

If you have found a solution, please consider accept it as the solution to help others.

In addition,this problem can also be solved using forall


ForAll(varStatus,Collect(varStatusDropdown, {Values:Result })


I think this link will help you a lot:

Best Regards,


Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,398)