Hi
I'm trying to patch a CDS option set from my Canvas app using a button.
The CDS entity is called 'alerts' the field is called 'Level" and the option set is called 'qrs_alertstate'. Alertstate has a few values; Critical, Warning and OK.
for the life of me I can't get this to update. Here is my code:
Patch([@Alerts], ThisItem, {Level : 'Level'.Okay})
can anyone help?
thanks in advance
Solved! Go to Solution.
Hi @Dr_David_Banner ,
Yes, that is the problem.
The Option Set Name is Alert State, the code should be:
Patch([@Alerts], ThisItem, {Level : [@'Alert State'].'Okay'})
Hope this helps.
Sik
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 |
---|---|
196 | |
67 | |
46 | |
41 | |
28 |
User | Count |
---|---|
255 | |
121 | |
84 | |
80 | |
80 |