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 / How to AddColumns() to...
Power Apps
Answered

How to AddColumns() to this

(0) ShareShare
ReportReport
Posted on by 3,347

I'm not getting this to work.  Whats the deal?

 

 

Distinct(
 ForAll(Split((ThisItem.SN_List_FFName),",").Value As varWO,
 With({varWOForAll: cmp_SN_Text_Functions.WO_SearchBySN_Exact(varWO.Value).WorkOrderOB},
 If(IsBlank(varWOForAll),"NoWO",varWOForAll))),
 Value)

 

 

This results in a list ["1234-2","4321-2","2142-3"]

 

I want to make this into this:

 

[{WorkorderOB:"1234-2",WorkOrder:1234,LineNumber:2},

 {WorkorderOB:"4321-2",WorkOrder:4321,LineNumber:2},

 {WorkorderOB:"2142-3",WorkOrder:2142,LineNumber:3}]

 

 

   

  

Categories:
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    you have some custom functions in there i thnk? so i cant exactly mimic your setup, but using the data RETURNED, this will sepearate it into the format you wanted, so should be able to reverse engineer this

     

    ClearCollect(testMe, 
    ForAll(
    Split("1234-2,4321-2,2142-3",",") As stepGuide, 
    {WorkorderOB:stepGuide.Value, WorkOrder:First(Split(stepGuide.Value,"-")).Value, LineNumber:Last(Split(stepGuide.Value,"-")).Value}
    ))

    TheRobRush_0-1683830993941.png

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard