LoginSignup
0
0

Streaming API

Posted at

ストリーミング API では、プッシュ技術を使用してイベントのストリーミングを行い、ほぼリアルタイムでイベントを受信する登録メカニズムを提供できます。ストリーミング API の登録メカニズムでは、PushTopic イベント、汎用イベント、プラットフォームイベント、変更データキャプチャイベントを含む、複数のイベント種別がサポートされます。

PushTopic

Unfortunately, these are the only supported Standard Objects -

Account
Campaign
Case
Contact
Lead
Opportunity
Task

Read this =
https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/supported_soql.htm


Access to XMLHttpRequest at 'Org 1.lightning.force.com/cometd/52.0' from origin 'Org 2.lightning.force.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I found the same question, so I did some research.

I assume you were setting up the connection cross domain. It appears the streaming API isn't supported.

https://salesforce.stackexchange.com/questions/179483/how-to-use-latest-cometd-version-in-salesforce-streamingapi

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0