I have a datasource (dataverse) that have a textcolumn called "dothis"
In this column i store things like "ThisItem.Username" or "Navigate(STARTSCREEN)"
Is it possible to trigger code from a datasource.
if(variable1 = true; ThisItem.dothis)
so that it would perform the code in that column text?
Hi @Oskarkuus ,
This is not possible the way you think,
Since code in column will be read as text and not the code itself.
You can do something similar like,
if(thisitem.dothis = "Create Record",
<Patch a new record code>,
if(thisitem.dothis = "Delete Record",
<Delete the record code>
)
)
Hope this helps
Thanks.
I had a hope to be able to call code insteade of putting it on controls. It is a mess when u build more advance app with many datasources...
Yeah I know @Oskarkuus ,
I've been there few months back and wanted to build something dynamic within components.
Doesn't happen like that unfortunately.
Good luck 🙂
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
207 | |
72 | |
51 | |
49 | |
20 |
User | Count |
---|---|
263 | |
123 | |
85 | |
79 | |
70 |