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
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 🙂
Join us for the next call on August 17, 2022 at 8am PDT.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.