Describe the bug
When using the Dialog (experimental) https://learn.microsoft.com/en-us/power-platform/guidance/creator-kit/dialog component within a Canvas App, it looses or sets global variables to null or empty which makes it unusable for logic.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
When pressing a button, a variable is set using Set(varX, Item.Selected.Property), the variable is set using a property that comes from a list of items.
Once the variable is set, it updates context using UpdateContext to show the modal.
The modal is displayed and it is using variables to render different texts. The modal also has a button, that has an onClick event. The button serves as a confirmation of the previous action - that passes the variable into a Remove-function with a Lookup and the selected.Item-variable. When this happens, the variable is suddenly blank or null.
It is possible to render the variable as text in the modal, but not passing it into the Remove and Lookup.
Screenshots


Additional context
Describe the bug
When using the Dialog (experimental) https://learn.microsoft.com/en-us/power-platform/guidance/creator-kit/dialog component within a Canvas App, it looses or sets global variables to null or empty which makes it unusable for logic.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When pressing a button, a variable is set using Set(varX, Item.Selected.Property), the variable is set using a property that comes from a list of items.
Once the variable is set, it updates context using UpdateContext to show the modal.
The modal is displayed and it is using variables to render different texts. The modal also has a button, that has an onClick event. The button serves as a confirmation of the previous action - that passes the variable into a Remove-function with a Lookup and the selected.Item-variable. When this happens, the variable is suddenly blank or null.
It is possible to render the variable as text in the modal, but not passing it into the Remove and Lookup.
Screenshots
Additional context