cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
shrinkTech
Level: Powered On

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
shrinkTech
Level: Powered On

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...

1 REPLY 1
shrinkTech
Level: Powered On

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...

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 209 members 4,396 guests
Please welcome our newest community members: