Script returns Choice Value instead of Choice Label with getDisplayValue() functionIssue getDisplayValue() function should return Choice Label by default. However, sometimes the script returns Choice Value instead of Choice Label of a field with getDisplayValue() function.CauseScript ran from a different domain instead of the domain in which is created.ResolutionTo resolve the issue - Change the domain from default to the domain of the script and execute so that the getDisplayValue() returns the choice labels. - When scheduling the script, set the 'Run as' user to the that has the domain of the script.