My Project status is a choice column in Dataverse, when a date in the Permit Submitted Column is selected in the form on Power Apps, I want the status to change to "In Review".
This is my OnSelect formula so far:
Got it.... Thanks Mike
in your error in your image 2, you are trying to compare the NAME of the Date Control toa Date Value
you need to use
Control.SelectedValue = Today()
Not the control name
If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
The issue it is showing is your = sign between a Date Comparison and the other side. So can you tell me what the error is there? Its nothing to do with the Option.
However
1. In the first one you typed, you typed [ThisItem.'Project Status'].InReview
What you are doing is trying to use the VALUE of Project status to be the Option Set
Option sets are accessed by using the Global Scoped Format or Local Table Format
so if you look at mine you would have
'Project Status': [@'Project Status'].InReview <=== is essentially a hardcoded value, versus your second one using the Dynamic Value property of a ComboBox.Selected.Value
The [@] Format means, I want to grab the VALUE I am listing from the Option set.
Your second one is perfect because you used the Selected Value and you see its not red because its correct
If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
I also tried this one
I can't get to work when I try and change it using my custom names. I'm sure I'm doing it wrong. Again, I want to change the Project Status to "In Review" when I select a date in the Permit Submitted field.
Here I have a table, with a Global choice as a column. Choice is Called DemoChoice and column is called MyChoice and a table called TableA.. Yes I am very good at naming things lol.
Now I want to update it from A to C
If you bind a Choice Field to a Combo or Dropdown (single select mind you)
Ill patch it to D using a combo Box
Now my Code
Patch(TableAS, LookUp(TableAS, Name = "My Record"), { MyChoice: Combo1_1.Selected.Value });
And Done
If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional