I have an entity in Dynamics 365 named Screen Progress Data with a field named "Screen Progress Status" of type option set. This field has following 3 options:
- Not Started
- In Progress
- Completed
In a canvas app I am selecting the records of this entity by running a filter on "Screen Progress Status" field using the following statement:
Set(varProgressStatus, Filter('Screen Progress Data', 'Screen Progress Status' = 'Screen Progress Status (Screen Progress Data)'.'Not Started'))
This works fine but I want this filter to run against a value stored in a variable. How can I change the query like below:
Set(varProgressStatus, Filter('Screen Progress Data', 'Screen Progress Status' = <value_from_a_variable>))
<value_from_a_variable> is a local variable which holds text "Not Started".
Any suggestion/help will be greatly appreciated.
Thanks