Salesforce IoT - AWS IoT Core

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

Salesforce IoT

Salesforce IoT (salesforce) 動作將資料從觸發規則的 MQTT 訊息傳送至 Salesforce IoT 輸入串流。

參數

當您使用此動作建立 AWS IoT 規則時,您必須指定下列資訊:

url

該 URL 會透過 Salesforce IoT 輸入串流公開。在您建立輸入串流時,便可從 Salesforce IoT 平台使用 URL。若需詳細資訊,請參閱 Salesforce IoT 文件。

支援替代範本:否

token

用於驗證特定 Salesforce IoT 輸入串流存取的權杖。在您建立輸入串流時,您便可在 Salesforce IoT 平台使用權杖。若需詳細資訊,請參閱 Salesforce IoT 文件。

支援替代範本:否

範例

下面的 JSON 範例定義 AWS IoT 規則中的 Salesforce IoT 動作。

{ "topicRulePayload": { "sql": "SELECT * FROM 'some/topic'", "ruleDisabled": false, "awsIotSqlVersion": "2016-03-23", "actions": [ { "salesforce": { "token": "ABCDEFGHI123456789abcdefghi123456789", "url": "https://ingestion-cluster-id.my-env.sfdcnow.com/streams/stream-id/connection-id/my-event" } } ] } }