开发者

Salesforce: environment-specific variable replacement in a custom button url

I have a custom Salesforce (Summer '11) button. Clicking the button navigates the user to a url in a new window. The url points to my own custom web app. (It does not point to the same url as that of the salesforce environment).

I want this url to be configurable for my dev, staging and live environments, so that the button in the SalesForce dev environment points to the app's dev environment, and so on.

If possible, what's the best way to achieve this, given that I'll be deploying the customization in dev (inc. button, but other things too) via a changeset which I'll push to the staging an开发者_如何学Pythond live environments?


You would want to implement this using a custom setting. Sadly it's not yet? possible - we need to vote: success.salesforce.com/ideaview?id=08730000000I5NsAAK


As long as your button URL is pointing to a relative path rather than the full path including the server instance (and, of course, as long as the path exists) your button will work across server instances without any fuss.

For example, do: /{!Account.Id}/e? etc.

do not: https://eu1.salesforce.com/{!Account.Id}/e? etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜