cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Responsive Resident
Responsive Resident

Glitch When Using PowerApps as a SPO Custom List Form

SPO allows you to replace the default SP form (edit, view, new) with a customizable PowerApps form. This works great but I've run into some issues:

 

SPO doesn't refresh the session; it merely replaces the item variable in the form with some type of SharePoint connector-of-sorts. So imagine if the SPO list is "Vendors". I choose Microsoft and then jump over to screen2 to look at its products (which is the result of filtering a secondary list)--this works fine. Now I close the form and choose "Dell". It automatically opens up on screen2 with Microsoft products listed--this is strange. Now I close that window and use SharePoint to create a new Vendor. It opens up on screen2 once again, listing Microsoft's vendors yet again--this is even more strange as a new, unexisting record would not have any products yet.

 

The intent is simple: start on screen1 everytime a new SharePoint record is pulled up.

 

The problem is that OnVisible and OnStart do not work, as opening up a record does not invoke these events. The only thing I can think of doing is running an infinite timer that continuously looks at the ID and time, but I'm hesitant to run an infinite loop--unless that's best practice.

 

Any recommendations?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Responsive Resident
Responsive Resident

Re: Glitch When Using PowerApps as a SPO Custom List Form

Since nobody is responding with a solution or workaround, I've taken the opportunity to submit this as a suggestion. I'll go ahead and close this thread. Thanks for trying to help, @cwebb365.

View solution in original post

7 REPLIES 7
Highlighted
Impactful Individual
Impactful Individual

Re: Glitch When Using PowerApps as a SPO Custom List Form

Possibly could set OnHidden on the screen and put in a Navigate to the home screen? Same with OnSuccess if an update or form gets submitted. Not sure if going off that would count as an onhidden thou. 

Highlighted
Responsive Resident
Responsive Resident

Re: Glitch When Using PowerApps as a SPO Custom List Form

OnHidden doesn't work because the screen doesn't technically transition when the SPO interface closes it. It's almost as SharePoint's close action just hides the application; and it does it on an application-level that is above PowerApps (hence no PowerApps event triggers).

 

As far as OnSuccess... suppose I selected Microsoft from my SPO list... and then I navigate to screen2 to look at its products. When I'm done viewing products, I invoke SharePoint's close action. At no point do I execute a SubmitForm action (which subsequently triggers an OnSuccess event).

Highlighted
Impactful Individual
Impactful Individual

Re: Glitch When Using PowerApps as a SPO Custom List Form

I mean when I tried to do a quick PoC to reproduce everything seemed to fire ok. can you elaborate a bit more on the app setup? 

 

List A is where the form lives pulling from List B data as screen 2? Or vise versa. Assuming you double click to open the app on an item and it goes to a home screen? Or did you just create a stand alone PA? 

Highlighted
Responsive Resident
Responsive Resident

Re: Glitch When Using PowerApps as a SPO Custom List Form

So I thought maybe I could invoke an action on Screen1 > Form > DataCard: CompanyName > DataCardValue.OnChange.

 

The idea was that when I select a new record on SPO, the value changes to a new company name's value... but it appears that system-invoked changes do not trigger OnChange... only user-invoked changes.

 

So if I manually change the company's name, it will trigger OnChange; however, when SPO changes the value based on selecting a new record in a list view, it does not trigger OnChange.

Highlighted
Impactful Individual
Impactful Individual

Re: Glitch When Using PowerApps as a SPO Custom List Form

Good idea :P, bummer it didn't work. If I can get a PoC of you're setup to reproduce it, I'll help try to come up with something(if it's even possible :))

Highlighted
Responsive Resident
Responsive Resident

Re: Glitch When Using PowerApps as a SPO Custom List Form

cwebb365 wrote:

Good idea :P, bummer it didn't work. If I can get a PoC of you're setup to reproduce it, I'll help try to come up with something(if it's even possible :))


 

What I'm doing is a bit sophisticated--you'd have to create several lists.

 

At this point, I think that either I'm doing something completely wrong or PowerApps does not take into consideration how SharePoint affects its events. I'm hoping that there is some wisdom for the former, but if it's the case of the latter, then I suppose a fix would be nice.

 

I'm just surprised there's not much out on this already.

 

Highlighted
Responsive Resident
Responsive Resident

Re: Glitch When Using PowerApps as a SPO Custom List Form

Since nobody is responding with a solution or workaround, I've taken the opportunity to submit this as a suggestion. I'll go ahead and close this thread. Thanks for trying to help, @cwebb365.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

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 (6,911)