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

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (5,368)