cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Unable to clearcollect on - OnView for sharepoint customized powerapps form

Hi

I am unable to clear collect a collection in one view that I am switching to on - OnView of sharepoint customized form. this view has a data table and a gallery that is connected to a collection ABC which is also been referred to in another view as a data source. 

What I am actually trying to do is - when people view sharepoint list item, I am taking list field value with is delimitter seperated and building a record in collection ABC. this is not happening when I write clearcollect in - OnView action, while it works absolutely fine when I do that same thing on button click. 

 

 

here is the formula I am using - ClearCollect(ABC,ForAll(Split(TrimEnds(SharePointIntegration.Selected.recordFieldValue),"#"),{Column1: First(Split(Result, ",").Result).Result, Column2: First(LastN(Split(Result, ","),7).Result).Result}))

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Unable to clearcollect on - OnView for sharepoint customized powerapps form

Dang. Worked.

The issue was that, in OnView of SharePointIntegration we need to only assign variables and navigate to screens. then on the OnVisible property of the screen we need to write the exact logic of collecting data to collection.

 

Freaking annoyed, as it took more than 4 days to figure. 

 

SharePointIntegration illustration - https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/sharepoint-form-integration#customize-t...

View solution in original post

1 REPLY 1
Highlighted
Helper I
Helper I

Re: Unable to clearcollect on - OnView for sharepoint customized powerapps form

Dang. Worked.

The issue was that, in OnView of SharePointIntegration we need to only assign variables and navigate to screens. then on the OnVisible property of the screen we need to write the exact logic of collecting data to collection.

 

Freaking annoyed, as it took more than 4 days to figure. 

 

SharePointIntegration illustration - https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/sharepoint-form-integration#customize-t...

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,830)