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

collection in patch

 
1 ACCEPTED SOLUTION

Accepted Solutions

Thanks for the clarification.  Please take a look at the blog post I wrote last year which deals with taking a collection with multiple rows and putting them all into a single variable, with the proper punctuation which is, more or less, what I think you are looking for.  (You may not need the part on inserting &, but the rest would apply).
https://powerusers.microsoft.com/t5/News-Announcements/How-To-Properly-punctuating-a-list-of-items/b...

 

LRVinNC

LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
LRVinNC
Super User
Super User

A couple questions... 

 

In your collection, is each checkbox result in a separate record?

And in your patch statement are you trying to patch from multiple records in the collection into a single SQL record or does one record in the collection go to one SQL record?

LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Anonymous
Not applicable

each checkbox goes into one collection. And I am trying to get multiple values out of the collection into one sql record.

Thanks for the clarification.  Please take a look at the blog post I wrote last year which deals with taking a collection with multiple rows and putting them all into a single variable, with the proper punctuation which is, more or less, what I think you are looking for.  (You may not need the part on inserting &, but the rest would apply).
https://powerusers.microsoft.com/t5/News-Announcements/How-To-Properly-punctuating-a-list-of-items/b...

 

LRVinNC

LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Anonymous
Not applicable

Alright, I applied this in my app but i am not completely sure what to put in my patch function
If(CountRows(uitvoerders) = 1; First(uitvoerders).Value; CountRows(uitvoerders) = 2; First(uitvoerders).Value & ", " & Last(uitvoerders).Value; CountRows(uitvoerders) > 2; Concatenate(Concat(FirstN(Split(Concat(uitvoerders; Value; "; "); "; ").Result; CountRows(uitvoerders)-1); Result & ","); " en "; Last(uitvoerders).Value);;

This is what i have right now. What do i put in my patch?

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (20,572)