there is an Entity of Activity type and it has a statecode, statuscode and other optionset fields;
i want to make a button that onselect it'll change the status to approved/canceled .
i tried somehow to do it through "canvas code" but it says that it doesnt support optionset values
how do i connect the button to make it do it ?
through code or power automate ?
How?