Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

How to create a Collection from a Sharepoint Multi-Select column with Fill-In Values

Posted on by 51

Hello!

 

I have a Sharepoint List called Projects with a multi-select & fill-in enabled column named ProjectCategories

 

Sample Data:

IDTitleProjectCategories
1ProjectACat1,Cat2,Cat3
2ProjectBCat2,Cat3
3ProjectCCat1,Cat5

 

I'm trying to populate a combobox with all the previously used ProjectCategories values but no matter how I format the ClearCollect, I get syntax errors - mostly invalid argument type (table) expected text because the ProjectCategories column seems to be classed as a table at the record level. I even tried:

 

ClearCollect(
collProjectCategories,
Concatenate(Projects.ProjectCategories, ", ")
);

 

and tried to stick it in a ForAll but no luck.

 

Does anyone know how to get around this? I just need to create a collection that would result in the above data looking like: 

 

ProjectCategories
Cat1
Cat2
Cat3
Cat5

(I realize there will be a Distinct needed in here - but I'll worry about that once the Collection part is figured out!)

 

Any guidance would be great appreciated, thanks!

  • ImaKickUrAsh Profile Picture
    ImaKickUrAsh 51 on at
    Re: How to create a Collection from a Sharepoint Multi-Select column with Fill-In Values

    you are a wizard 🙂 thank you @v-mengmli-msft this worked perfectly!

  • Verified answer
    Re: How to create a Collection from a Sharepoint Multi-Select column with Fill-In Values

    Hi @ImaKickUrAsh ,

     

    Please try this:

    ClearCollect(collProjectCategories,Distinct(Ungroup(Projects,"ProjectCategories").Value,Value))

     

    Best regards,

    Rimmon Li

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard