質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top