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 / Concat with Sequence f...
Power Apps
Answered

Concat with Sequence function

(0) ShareShare
ReportReport
Posted on by

Hi

 

So I'm using the Concat on a collection and patching them into Multiline Text field on SharePoint List.

i would like to order them but i don't know how many items will be in the collection, so dont know how to use the sequence function. 

 

Below is my code

 

Concat(SystemAccessCollection,If(!IsBlank(AccessRole),"AccessRole:" & AccessRole &"," & Char(13) &"ServerAppName:" & ServerApplicationName & Char(13)))

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @indhaa 

    I am not entirely clear on what you mean by order them.

    Can you expand on that a little as to what you expect to see in your results?

     

  • indhaa Profile Picture
    on at

    So currently I'm getting the data for example 

    AccessRole:Admin, ServerAppName:ABCD
    AccessRole:Root, ServerAppName:EFG

     

    So I would like to have the data as below. 

     

    1. AccessRole:Admin     ServerAppName:ABCD
    2. AccessRole:Root        ServerAppName:EFG

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @indhaa 

    Thank you for clarifying.

     

    So your Formula should be the following:

    With({_itms: Filter(SystemAccessCollection, !IsBlank(AccessRole))},
     Concat(
     ForAll(Sequence(CountRows(_itms)),
     With({_itm: Last(FirstN(_itms, Value))},
     Text(Value) & ". " & 
     "AccessRole:" & _itm.AccessRole & "," & Char(13) &
     "ServerAppName:" & _itm.ServerApplicationName & Char(13)
     )
     )
     )
    )
  • indhaa Profile Picture
    on at

    Hi

     

    Can breakdown the code for me. I'm getting the error Invalid number of argument: received 1 , expected 2-3.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @indhaa 

    Sorry, typo in my formula.

    Should be:

    With({_itms: Filter(SystemAccessCollection, !IsBlank(AccessRole))},
     Concat(
     ForAll(Sequence(CountRows(_itms)),
     {_itm: Last(FirstN(_itms, Value)), seq:Value}
     ),
     Text(seq) & ". " & 
     "AccessRole:" & _itm.AccessRole & "," & Char(13) &
     "ServerAppName:" & _itm.ServerApplicationName & Char(13)
     )
    )

     

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 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard