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
Eelman
Community Champion
Community Champion

@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
Community Champion
Community Champion

@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?

Eelman
Community Champion
Community Champion

@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?

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

Eelman
Community Champion
Community Champion

@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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,978)