cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bfausti
Helper II
Helper II

Patching data with Components

I have several screens (around 10) in a custom canvas app and have added a Feedback component to gather user feedback from each of the screens. I am aware of the limitations around data sources and components and have created custom output controls so the underlying screens can gather the data entered in the below component.

 

The issue is I can't find a way to successfully patch the outputted data back to a table in Dataverse, without user input (Ie. clicking a button back on a screen which isn't a good UE). Can anyone help me with this?

 

bfausti_0-1631745444403.png

 

Also, a bit of a whinge, why aren't variables created from the screens (that are meant to be global) available from the component and visa versa. Further more, why are data sources not either?

 

Doesn't really make sence to me as they are all within the same canvas app.

1 ACCEPTED SOLUTION

Accepted Solutions

@bfausti 

Components can set in-app variables, I'm pretty sure? That's how I'd look at it ie get the toggle to trigger from the variable set by the component.

 

I'll admit, I don't play around with components very often but I'm pretty sure I was able to set a variable from a component?

View solution in original post

5 REPLIES 5
Eelman
Super User
Super User

@bfausti 

Could the output toggle a Toggle which holds Patch code? You would need to turn off then turn on again to make it work.

 

The toggle-to-run-code used to work but I haven't tried it in awhile so not sure if it still does?

Thanks @Eelman for your reply. The issue is how will I turn off and on the toggle without user intervention?

@bfausti 

Components can set in-app variables, I'm pretty sure? That's how I'd look at it ie get the toggle to trigger from the variable set by the component.

 

I'll admit, I don't play around with components very often but I'm pretty sure I was able to set a variable from a component?

View solution in original post

Thanks @Eelman, setting an output variable from the component seem to do the trick 🙂

@bfausti 

That’s great mate, well done! If you have the time it’d great to see how you did it and that’d also help anyone else in the future who has a similar problem 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,919)