Scribe Online makes it very easy to work with OptionSets while writing Integration and Replication solutions.
While creating the Dynamics 365 CE connection we can check the Include Picklist Display Names checkbox.
Scribe generates a corresponding field schemaname_displayname that holds the label for the corresponding option set.
Within our Query Block inside an integration type solution, we can see the display name fields added for each corresponding option set field.
Go to the Preview tab
Here we can see leadqualitycode_displayname, leadsourcecode_displayname etc. field added.
Within our Filter criteria, we can directly refer the label as shown below.
We can get the label from the Preview tab itself by clicking on the information icon next to the field as shown below instead of opening CRM.
Hope it helps..