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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (976)