cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Drop Down List for Email Separated Split by ; delimiter not working

Hi, I am trying to create a drop down list for an email column that contains 2 or more emails separated by ; delimiter.

 

I already tried Distinct ('Process Task List', Split( Email,";")) however this goes into error saying Expected a different collection record structure.

 

Any ideas to properly split the emails?

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

Could you tell me:
1)what is your data source?

2)what is this field data type? I'm afraid there's no data type called Email

3)the format of this field?

If this field is text type and with data like this: "email1;email2","email2;email3", and you want to get no-repeated emails in a drop down, you could set the drop down's Items like this:

Filter(
       Distinct(
                Split(
                      Concat('Process Task List',Email&";"),
//connect all email togther to text
                      ";"
                     ),
//split to a table
                Result),
//get no-repated value
       !IsBlank(Result)
       )

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

Could you tell me:
1)what is your data source?

2)what is this field data type? I'm afraid there's no data type called Email

3)the format of this field?

If this field is text type and with data like this: "email1;email2","email2;email3", and you want to get no-repeated emails in a drop down, you could set the drop down's Items like this:

Filter(
       Distinct(
                Split(
                      Concat('Process Task List',Email&";"),
//connect all email togther to text
                      ";"
                     ),
//split to a table
                Result),
//get no-repated value
       !IsBlank(Result)
       )

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yutliu-msft ,

 

Thank you for you response.  Here is my answer to you query:

1. Data Source: Collection

2.  Type: String

3.  Filed Format: Text

 

When I tried your recommendation I got blank results. I even tried creating a column for People (email input) and I got blank results as well. 😞

 

Anonymous
Not applicable

Hi @v-yutliu-msft ,

 

I reverted to email string instead rather than People & Group column.

 

I applied below collection by all I am getting is All Persons in my collection:

 

ClearCollect(personDropDownCol,{Result:"All Persons"});
Collect(personDropDownCol,Filter(Sort(Distinct(Split(Concat('Department',PersonEmailString&";"), ";"),Result),!IsBlank(Result)),Ascending));

 

Any ideas?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,054)