Loading
贈款
在 Apex 中存取候選外部服務

在 Apex 中存取候選外部服務

設計並測試將資訊從 Salesforce 傳送至 Candid 的自動化。

必要版本

提供版本:Lightning Experience
提供版本:Nonprofit Cloud for Grantmaking 和公共部門解決方案。檢視版本可用性。

以下是在 Apex 中叫用「外部服務」的範例,其中 sfdoId 是 Salesforce.org 的 EIN。

final String sfdoEin ='26-2409769';

ExternalService.CandidCharityCheck service = new ExternalService.CandidCharityCheck();

ExternalService.CandidCharityCheck.charitycheckx5fv1_Request request =
new ExternalService.CandidCharityCheck.charitycheckx5fv1_Request();
request.ein = sfdoEin;

ExternalService.CandidCharityCheck.charitycheckx5fv1_Response response =
service.charitycheckx5fv1(request);
System.debug(response);

若要建立自動化,請參閱 使用 Apex 建立外部服務的呼叫。

 
正在載入
Salesforce Help | Article