We have a formula field against contact records in Salesforce that needs to be different based on whether the record is being viewed in the Sales Cloud or the Service Cloud Console.
Is there a way to detect whether you are running under Sales Cloud or Service Cloud so the formula can be substituted?