Skip to main content

sfdc_channels

Creates, updates, deletes, gets or lists a sfdc_channels resource.

Overview

Namesfdc_channels
TypeResource
Idgoogle.integrations.sfdc_channels

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringResource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.
channelTopicstringRequired. The Channel topic defined by salesforce once an channel is opened
createTimestring (google-datetime)Output only. Time when the channel is created
deleteTimestring (google-datetime)Output only. Time when the channel was deleted. Empty if not deleted.
descriptionstringOptional. The description for this channel
displayNamestringOptional. Client level unique name/alias to easily reference a channel.
isActivebooleanOutput only. Indicated if a channel has any active integrations referencing it. Set to false when the channel is created, and set to true if there is any integration published with the channel configured in it.
lastReplayIdstringOutput only. Last sfdc messsage replay id for channel
updateTimestring (google-datetime)Output only. Time when the channel was last updated

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_products_sfdc_instances_sfdc_channels_getselectprojectsId, locationsId, productsId, sfdcInstancesId, sfdcChannelsIdGets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.
projects_locations_products_sfdc_instances_sfdc_channels_listselectprojectsId, locationsId, productsId, sfdcInstancesIdpageSize, pageToken, filter, readMaskLists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.
projects_locations_sfdc_instances_sfdc_channels_getselectprojectsId, locationsId, sfdcInstancesId, sfdcChannelsIdGets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.
projects_locations_sfdc_instances_sfdc_channels_listselectprojectsId, locationsId, sfdcInstancesIdpageSize, pageToken, filter, readMaskLists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.
projects_locations_products_sfdc_instances_sfdc_channels_createinsertprojectsId, locationsId, productsId, sfdcInstancesIdCreates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.
projects_locations_sfdc_instances_sfdc_channels_createinsertprojectsId, locationsId, sfdcInstancesIdCreates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.
projects_locations_products_sfdc_instances_sfdc_channels_patchupdateprojectsId, locationsId, productsId, sfdcInstancesId, sfdcChannelsIdupdateMaskUpdates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.
projects_locations_sfdc_instances_sfdc_channels_patchupdateprojectsId, locationsId, sfdcInstancesId, sfdcChannelsIdupdateMaskUpdates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.
projects_locations_products_sfdc_instances_sfdc_channels_deletedeleteprojectsId, locationsId, productsId, sfdcInstancesId, sfdcChannelsIdDeletes an sfdc channel.
projects_locations_sfdc_instances_sfdc_channels_deletedeleteprojectsId, locationsId, sfdcInstancesId, sfdcChannelsIdDeletes an sfdc channel.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
productsIdstring
projectsIdstring
sfdcChannelsIdstring
sfdcInstancesIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
readMaskstring (google-fieldmask)
updateMaskstring (google-fieldmask)

SELECT examples

Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.

SELECT
name,
channelTopic,
createTime,
deleteTime,
description,
displayName,
isActive,
lastReplayId,
updateTime
FROM google.integrations.sfdc_channels
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND productsId = '{{ productsId }}' -- required
AND sfdcInstancesId = '{{ sfdcInstancesId }}' -- required
AND sfdcChannelsId = '{{ sfdcChannelsId }}' -- required;

INSERT examples

Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.

INSERT INTO google.integrations.sfdc_channels (
data__name,
data__displayName,
data__description,
data__channelTopic,
projectsId,
locationsId,
productsId,
sfdcInstancesId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
'{{ channelTopic }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ productsId }}',
'{{ sfdcInstancesId }}'
RETURNING
name,
channelTopic,
createTime,
deleteTime,
description,
displayName,
isActive,
lastReplayId,
updateTime
;

UPDATE examples

Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.

UPDATE google.integrations.sfdc_channels
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__channelTopic = '{{ channelTopic }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND productsId = '{{ productsId }}' --required
AND sfdcInstancesId = '{{ sfdcInstancesId }}' --required
AND sfdcChannelsId = '{{ sfdcChannelsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
channelTopic,
createTime,
deleteTime,
description,
displayName,
isActive,
lastReplayId,
updateTime;

DELETE examples

Deletes an sfdc channel.

DELETE FROM google.integrations.sfdc_channels
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND productsId = '{{ productsId }}' --required
AND sfdcInstancesId = '{{ sfdcInstancesId }}' --required
AND sfdcChannelsId = '{{ sfdcChannelsId }}' --required;