Skip to main content

sfdc_instances

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

Overview

Namesfdc_instances
TypeResource
Idgoogle.integrations.sfdc_instances

Fields

NameDatatypeDescription
namestringResource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.
descriptionstringA description of the sfdc instance.
authConfigIdarrayA list of AuthConfigs that can be tried to open the channel to SFDC
createTimestringOutput only. Time when the instance is created
deleteTimestringOutput only. Time when the instance was deleted. Empty if not deleted.
displayNamestringUser selected unique name/alias to easily reference an instance.
serviceAuthoritystringURL used for API calls after authentication (the login authority is configured within the referenced AuthConfig).
sfdcOrgIdstringThe SFDC Org Id. This is defined in salesforce.
updateTimestringOutput only. Time when the instance was last updated

Methods

NameAccessible byRequired ParamsDescription
projects_locations_products_sfdc_instances_getSELECTlocationsId, productsId, projectsId, sfdcInstancesIdGets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.
projects_locations_products_sfdc_instances_listSELECTlocationsId, productsId, projectsIdLists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.
projects_locations_sfdc_instances_getSELECTlocationsId, projectsId, sfdcInstancesIdGets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.
projects_locations_sfdc_instances_listSELECTlocationsId, projectsIdLists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.
projects_locations_products_sfdc_instances_createINSERTlocationsId, productsId, projectsIdCreates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.
projects_locations_sfdc_instances_createINSERTlocationsId, projectsIdCreates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.
projects_locations_products_sfdc_instances_deleteDELETElocationsId, productsId, projectsId, sfdcInstancesIdDeletes an sfdc instance.
projects_locations_sfdc_instances_deleteDELETElocationsId, projectsId, sfdcInstancesIdDeletes an sfdc instance.
projects_locations_products_sfdc_instances_patchUPDATElocationsId, productsId, projectsId, sfdcInstancesIdUpdates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.
projects_locations_sfdc_instances_patchUPDATElocationsId, projectsId, sfdcInstancesIdUpdates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.

SELECT examples

Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.

SELECT
name,
description,
authConfigId,
createTime,
deleteTime,
displayName,
serviceAuthority,
sfdcOrgId,
updateTime
FROM google.integrations.sfdc_instances
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new sfdc_instances resource.

/*+ create */
INSERT INTO google.integrations.sfdc_instances (
locationsId,
projectsId,
sfdcOrgId,
serviceAuthority,
authConfigId,
displayName,
name,
description
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ sfdcOrgId }}',
'{{ serviceAuthority }}',
'{{ authConfigId }}',
'{{ displayName }}',
'{{ name }}',
'{{ description }}'
;

UPDATE example

Updates a sfdc_instances resource.

/*+ update */
UPDATE google.integrations.sfdc_instances
SET
sfdcOrgId = '{{ sfdcOrgId }}',
serviceAuthority = '{{ serviceAuthority }}',
authConfigId = '{{ authConfigId }}',
displayName = '{{ displayName }}',
name = '{{ name }}',
description = '{{ description }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sfdcInstancesId = '{{ sfdcInstancesId }}';

DELETE example

Deletes the specified sfdc_instances resource.

/*+ delete */
DELETE FROM google.integrations.sfdc_instances
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sfdcInstancesId = '{{ sfdcInstancesId }}';