cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bfausti
Advocate II
Advocate 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
Anonymous
Not applicable

@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

6 REPLIES 6
Anonymous
Not applicable

@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 @Anonymous for your reply. The issue is how will I turn off and on the toggle without user intervention?

Anonymous
Not applicable

@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 @Anonymous, setting an output variable from the component seem to do the trick 🙂

Anonymous
Not applicable

@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 

Hi,

Could you pleeeease post your solution? 🙏 (I don't understand the solution right now.)  I've looked everywhere but haven't found a solution. Thanks in advance!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,437)