您在此处:
自定义按钮示例:将记录 ID 传递到外部系统
可使用 Salesforce 记录 ID 作为用于与外部系统集成的唯一标识符。本示例将创建一个按钮,它将调用一个 Visualforce 页面,以确定所选记录的记录 ID 并在 URL 查询参数中将它们传递到名为 www.yourwebsitehere.com 的外部网页。
可使用 Salesforce 记录 ID 作为用于与外部系统集成的唯一标识符。本示例将创建一个按钮,它将调用一个 Visualforce 页面,以确定所选记录的记录 ID 并在 URL 查询参数中将它们传递到名为 www.yourwebsitehere.com 的外部网页。
| 适用于:Salesforce Classic |
自定义按钮和链接适用于:所有版本 Visualforce 页面和 S-Control 可在以下版本中使用:Contact Manager、Group、Professional、Enterprise、Performance、Unlimited 和 Developer Edition |
| 所需用户权限 | |
|---|---|
| 创建或更改自定义按钮或链接: | 自定义应用程序 |
<script type="text/javascript">
idArray = {!GETRECORDIDS($ObjectType.Account)};
window.location.href="http://www.yourwebsitehere.com?array="+idArray;
</script>
| 显示类型 | 列表按钮 选中显示复选框(适用于多记录选项),这样,在单击按钮之前,用户可选择列表中的多个记录。 |
|---|---|
| 行为 | 显示在带有侧栏的现有窗口中。 |
| 内容源 | Visualforce 页面。 |

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.