Question

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?

Was it helpful?

Solution

I'm quite sure you cannot do this using a formula field. You can do this in custom code/controller by checking the URL parameter named isdtp , if you are in console it will be set to 'vw' or 'nv'.

Hope this helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top