web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Assigning an ID to Spl...
Power Apps
Unanswered

Assigning an ID to Split Value matching on Sharepoint list

(0) ShareShare
ReportReport
Posted on by 2

I currently have a SharePoint list that contains String. I use Split(name, " ") to get the value for each, but how do I assign the value I get from Split() to a specific ID that matches on SharePoint in order to do a search that is contained in the collection for the Split() I'm creating.

 

 

ClearCollect(Collection_List_Name,{Value:""},{Id:""});
ForAll(List_Name,Collect(Collection_List_Name,Split("String"," "),ForAll(Split("String"," "),ID))));

 

 

This is what I came up with, but unsure how to assign the Split() value I get to the specific ID that matches in the SharePoint list

Categories:
  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @travisdang,

    Could you please show some screenshots about your List_Name and what the collection you want looks like?

     

    Best Regards,

    Kyrie

  • travisdang Profile Picture
    2 on at

    Hi @v-mingkz-msft,

    I was able to fix the code to make it work as I intended, but now I'm having another problem, where I want to use the Filter() function, to be able to search for certain characters in a String, but I don't want to use the function search because of the "delegation warning".

     

    In the SharePoint list, I have a column named Company_To, and I have been able to Split() the Company_To word by word into a collection that contains all the original data in the SharePoint list. However, this has produced a lot of duplicate data in the list, and I want it to show only a single data of the duplicate, but still be able to to search for the correct data in the collection list

     

     

    SortByColumns(
     Filter(
     CourierApp,
     //Delete status
     ('Status (Status0)'.Value = 'on-off_1'.Selected.Value Or 'on-off_1'.Selected.Value = "Status"),
     //Search box
     StartsWith(
     CCV,
     TextInput1_1.Text
     ) || StartsWith(
     Content,
     TextInput1_1.Text
     ) || StartsWith(
     Address_to,
     TextInput1_1.Text
     )||
     //This StartsWith() code currently does not return data
     //You can ignore all the other line of code as this is the only that doesn't function 
     //correctly
     StartsWith(
     LookUp(company_list_name, Value = TextInput1_1.Text).Value,
     TextInput1_1.Text
     ),
     //Company Box
     (Company_From.Value = [@Company_1].Selected.Value Or [@Company_1].Selected.Value = "Company"),
     //Property Box
     (Property = office_1.Selected.Value Or office_1.Selected.Value = "Office"),
     // Date Range
     (start_1.SelectedDate <= Created) && (Created <= DateAdd(end_1.SelectedDate,1)
     )
     ),
     "Created",
     SortOrder.Descending
    )

     

     

    Ignore the incorrect list name for the two function 😁

     

    This is the new code for the collection list

     

    Clear(temp_list) ; 
    ForAll(CourierApp, Collect(temp_list, ForAll(Split(Company_To," ") As SplitColl, 
    {
     Value: SplitColl.Value,
     Company_To:Company_To, 
     Created:Created,
     Id: ID,
     CCV: CCV,
     ID:ID
     
    } )
    ));
    
    ClearCollect(Col_StartWith, Filter(temp_list, StartsWith(Value, TextInput1_1.Text)) )

     

     There is more column in the SharePoint list, but only taking out a few for testing purposes.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard