CdpQuery Class
Get Data 360 metadata and query data.
These methods are for CdpQuery. All methods are static.
-
Get all metadata, including Calculated Insights, Engagement, Profile, and other objects, as well as their relationships to other objects.
-
getAllMetadata(entityType, entityCategory, entityName)
Get all metadata, filtering for entity type, category, and name.
-
getAllMetadata(entityType, entityCategory, entityName, dataspace)
Get all metadata, filtering for entity type, category, name, and data space.
-
getDataGraphData(dataGraphEntityName, id)
Query a data graph in the default data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
-
getDataGraphData(dataGraphEntityName, id, dataspace)
Query a data graph in a specified data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
-
getDataGraphData(dataGraphEntityName, id, live)
Query a data graph by performing a live lookup in the default data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
-
getDataGraphData(dataGraphEntityName, id, dataspace, live)
Query a data graph by performing a live lookup in a specified data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
-
getDataGraphDataWithLookupKeys(dataGraphEntityName, lookupKeys)
Query a data graph by the primary key of either the primary Data Model Object (DMO) or the Individual linked DMO. Get the data from the default data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
-
getDataGraphDataWithLookupKeys(dataGraphEntityName, lookupKeys, dataspace)
Query a data graph by the primary key of either the primary Data Model Object (DMO) or the Individual linked DMO. Get the data from a specified data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
-
getDataGraphDataWithLookupKeys(dataGraphEntityName, lookupKeys, dataspace, noCache)
Query a data graph by the primary key of either the primary Data Model Object (DMO) or the Individual linked DMO. Get the data from a specified data space. Get data from a standard or real-time data graph. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
-
Retrieve metadata from all data graphs in the default data space. Retrieves data from both standard and real-time data graphs.
-
getDataGraphMetadata(dataGraphEntityName)
Retrieve metadata from a specified data graph in the default data space. Retrieves data from both standard and real-time data graphs.
-
getDataGraphMetadata(dataGraphEntityName, dataspace)
Retrieve metadata from a specified data graph in a specified data space. Retrieves data from both standard and real-time data graphs.
-
Get Insight metadata, including Calculated Insight objects, their dimensions and measures.
-
Get metadata for a Calculated Insight object. Metadata includes dimensions and measures.
-
getInsightsMetadata(ciName, dataspace)
Get metadata for a Calculated Insight object and specify the data space. Metadata includes dimensions and measures.
-
Get a list of metadata entities and retrieve only essential fields to optimize performance at scale.
-
getMetadataEntities(entityCategory, entityType)
Get a list of metadata entities and retrieve only essential fields to optimize performance at scale. Specify the entity category and type.
-
getMetadataEntities(entityCategory, entityType, dataspace)
Get a list of metadata entities and retrieve only essential fields to optimize performance at scale. Specify the entity category, type, and data space.
-
Get metadata for data model objects in the profile category, including Individual, Contact Point Email, Unified Individual, and Contact Point Address objects. Metadata includes the objects, their fields, and category.
-
getProfileMetadata(dataModelName)
Get metadata for a data model object in the profile category, such as Individual, Contact Point Email, Unified Individual, and Contact Point Address. Metadata includes the list of fields, data types, and indexes available for lookup.
-
getProfileMetadata(dataModelName, dataspace)
Get metadata for a data model object in the profile category, such as Individual, Contact Point Email, Unified Individual, and Contact Point Address. Also, specify the data space. Metadata includes the list of fields, data types, and indexes available for lookup.
-
Synchronously query data across data model, lake, unified, and linked objects. This query returns up to 49,999 rows.
-
queryANSISql(input, batchSize, offset, orderby)
Synchronously query data across data model, lake, unified, and linked objects. Specify batch size, offset, and order of the results. This query returns up to 49,999 rows.
-
queryANSISql(input, batchSize, offset, orderby, dataspace)
Synchronously query data across data model, lake, unified, and linked objects. Specify batch size, offset, order of the results, and data space. This query returns up to 49,999 rows.
-
Query data across data model, lake, unified, and linked objects.
-
queryAnsiSqlV2(input, dataspace)
Query data across data model, lake, unified, and linked objects. Also, specify the data space.
-
nextBatchAnsiSqlV2(nextBatchId)
Get the next batch of data across data model, lake, unified, and linked objects.
-
nextBatchAnsiSqlV2(nextBatchId, dataspace)
Get the next batch of data across data model, lake, unified, and linked objects. Also, specify the data space.
-
Submit an SQL query request for execution and retrieve the first chunk of data.
-
Submit an SQL query request for execution and specify the data space.
-
querySql(input, workloadName, dataspace)
Submit an SQL query request for execution and specify the workload name and data space.
-
querySqlRows(queryId, offset, rowLimit)
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Results are available for up to 24 hours.
-
querySqlRows(queryId, offset, rowLimit, omitSchema)
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify whether to include metadata in the response or not. Results are available for up to 24 hours.
-
querySqlRows(queryId, offset, rowLimit, dataspace)
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify the data space. Results are available for up to 24 hours.
-
querySqlRows(queryId, offset, rowLimit, omitSchema, dataspace)
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify the data space and whether or not to exclude metadata from the response. Results are available for up to 24 hours.
-
querySqlRows(queryId, offset, rowLimit, workloadName, dataspace)
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify the workload name and data space. Results are available for up to 24 hours.
-
querySqlRows(queryId, offset, rowLimit, omitSchema, workloadName, dataspace)
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify the workload name, data space, and whether or not to exclude metadata from the response. Results are available for up to 24 hours.
-
Delete the specified query and terminate long-running queries that are no longer needed to manage resource consumption.
-
cancelQuerySql(queryId, dataspace)
Delete the specified query and terminate long-running queries that are no longer needed to manage resource consumption. Specify the data space.
-
cancelQuerySql(queryId, workloadName, dataspace)
Delete the specified query and terminate long-running queries that are no longer needed to manage resource consumption. Specify the data space and workload name.
-
Get the status of an SQL query request. Results are available for up to 24 hours.
-
querySqlStatus(queryId, waitTimeMs)
Get the status of an SQL query request and specify the time to wait before returning the response. Results are available for up to 24 hours.
-
querySqlStatus(queryId, dataspace)
Get the status of an SQL query request and specify the data space. Results are available for up to 24 hours.
-
querySqlStatus(queryId, dataspace, waitTimeMs)
Get the status of an SQL query request. Specify the data space and time to wait before returning the response. Results are available for up to 24 hours.
-
querySqlStatus(queryId, workloadName, dataspace)
Get the status of an SQL query request. Specify the workload name and data space. Results are available for up to 24 hours.
-
querySqlStatus(queryId, workloadName, dataspace, waitTimeMs)
Get the status of an SQL query request. Specify the workload name, data space, and time to wait before returning the response. Results are available for up to 24 hours.
-
queryCalculatedInsights(ciName, dimensions, measures, orderby, filters, batchSize, offset)
Query a Calculated Insight object.
-
Query a Calculated Insight object within a specified time range.
-
Query a Calculated Insight object within a specified time range and specify the data space.
-
queryProfileApi(dataModelName, filters, fields, batchSize, offset, orderby)
Query a Profile data model object using filters.
-
queryProfileApi(dataModelName, id, searchKey, filters, fields, batchSize, offset, orderby)
Query a Profile data model object using filters and a search key.
-
Query a Profile data model object and a child object using filters and a search key.
-
Query a Profile data model object and a Calculated Insight object using filters and a search key.
-
Query a Profile data model object and a Calculated Insight object using filters, a search key, and a time range.
-
Query a Profile data model object and a Calculated Insight object using filters, a search key, a time range, and a data space.
-
universalIdLookupBySourceId(entityName, dataSourceId, dataSourceObjectId, sourceRecordId)
Look up objects by source ID.
-
universalIdLookupBySourceId(entityName, dataSourceId, dataSourceObjectId, sourceRecordId, dataspace)
Look up objects by source ID and specify the data space.
Get all metadata, including Calculated Insights, Engagement, Profile, and other objects, as well as their relationships to other objects.
52.0
No
public static ConnectApi.CdpQueryMetadataOutput getAllMetadata()
Type: ConnectApi.CdpQueryMetadataOutput
Get all metadata, filtering for entity type, category, and name.
54.0
No
public static ConnectApi.CdpQueryMetadataOutput getAllMetadata(String entityType, String entityCategory, String entityName)
- entityType
Type: String
Type of metadata entity requested. Valid values are
DataLakeObject,DataModelObject, andCalculatedInsight. If unspecified, all types are returned.- entityCategory
Type: String
Category of the metadata entity. Valid values are
Profile,Engagement, andRelated. If unspecified, all category entities are returned.- entityName
Type: String
Metadata name of the entity, for example
UnifiedIndividual__dlm. If unspecified, a complete list of entities is returned.
Type: ConnectApi.CdpQueryMetadataOutput
Get all metadata, filtering for entity type, category, name, and data space.
57.0
No
public static ConnectApi.CdpQueryMetadataOutput getAllMetadata(String entityType, String entityCategory, String entityName, String dataspace)
- entityType
Type: String
Type of metadata entity requested. Valid values are
DataLakeObject,DataModelObject, andCalculatedInsight. If unspecified, all types are returned.- entityCategory
Type: String
Category of the metadata entity. Valid values are
Profile,Engagement, andRelated. If unspecified, all category entities are returned.- entityName
Type: String
Metadata name of the entity, for example
UnifiedIndividual__dlm. If unspecified, a complete list of entities is returned.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.CdpQueryMetadataOutput
Query a data graph in the default data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
59.0
No
public static ConnectApi.CdpQueryOutput getDataGraphData(String dataGraphEntityName, String id)
- dataGraphEntityName
Type: String
API name of the data graph to query.
- id
Type: String
Record ID to query for. The ID is matched against the primary key field of the primary Data Model Object (DMO) in the data graph.
Type: ConnectApi.CdpQueryOutput
Query a data graph in a specified data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
59.0
No
public static ConnectApi.CdpQueryOutput getDataGraphData(String dataGraphEntityName, String id, String dataspace)
- dataGraphEntityName
Type: String
API name of the data graph to query.
- id
Type: String
Record ID to query for. The ID is matched against the primary key field of the primary Data Model Object (DMO) in the data graph.
- dataspace
Type: String
Name of the data space in which to query the data graph.
Type: ConnectApi.CdpQueryOutput
Query a data graph by performing a live lookup in the default data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
63.0
No
public static ConnectApi.CdpQueryOutput getDataGraphData(String dataGraphEntityName, String id, Boolean live)
- dataGraphEntityName
Type: String
API name of the data graph to query.
- id
Type: String
Record ID to query for. The ID is matched against the primary key field of the primary Data Model Object (DMO) in the data graph.
- live
Type: Boolean
Indicates whether live lookup for the data graph is enabled (
true) or not (false). With live lookup, the Query Service does not query the data graph itself. It instead queries the data graph's metadata to return data that is guaranteed to be fresh. The response mimics the structure of the regular JSON-formatted response for the data graph. You can use live lookup on any data graph, regardless of the complexity of its structure.
Type: ConnectApi.CdpQueryOutput
Query a data graph by performing a live lookup in a specified data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
63.0
No
public static ConnectApi.CdpQueryOutput getDataGraphData(String dataGraphEntityName, String id, String dataspace, Boolean live)
- dataGraphEntityName
Type: String
API name of the data graph to query.
- id
Type: String
Record ID to query for. The ID is matched against the primary key field of the primary Data Model Object (DMO) in the data graph.
- dataspace
Type: String
Name of the data space in which to query the data graph.
- live
Type: Boolean
Indicates whether live lookup for the data graph is enabled (
true) or not (false). With live lookup, the Query Service does not query the data graph itself. It instead queries the data graph's metadata to return data that is guaranteed to be fresh. The response mimics the structure of the regular JSON-formatted response for the data graph. You can use live lookup on any data graph, regardless of the complexity of its structure.
Type: ConnectApi.CdpQueryOutput
Query a data graph by the primary key of either the primary Data Model Object (DMO) or the Individual linked DMO. Get the data from the default data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
59.0
No
public static ConnectApi.CdpQueryOutput getDataGraphDataWithLookupKeys(String dataGraphEntityName, String lookupKeys)
- dataGraphEntityName
Type: String
API name of the data graph to query.
- lookupKeys
Type: String
Lookup key and value to search on. Specify one of these key-value pairs:
- The primary key of the primary DMO, for example,
lookupKeys=[id__c=def] - The primary key of the Individual linked DMO, for example,
lookupKeys=[IndividualLink__dlm.SourceRecordId__c=1111111]
- The primary key of the primary DMO, for example,
Type: ConnectApi.CdpQueryOutput
Query a data graph by the primary key of either the primary Data Model Object (DMO) or the Individual linked DMO. Get the data from a specified data space. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
59.0
No
public static ConnectApi.CdpQueryOutput getDataGraphDataWithLookupKeys(String dataGraphEntityName, String lookupKeys, String dataspace)
- dataGraphEntityName
Type: String
API name of the data graph to query.
- lookupKeys
Type: String
Lookup key and value to search on. Specify one of these key-value pairs:
- The primary key of the primary DMO, for example,
lookupKeys=[id__c=def] - The primary key of the Individual linked DMO, for example,
lookupKeys=[IndividualLink__dlm.SourceRecordId__c=1111111]
- The primary key of the primary DMO, for example,
- dataspace
Type: String
Name of the data space in which to query the data graph.
Type: ConnectApi.CdpQueryOutput
Query a data graph by the primary key of either the primary Data Model Object (DMO) or the Individual linked DMO. Get the data from a specified data space. Get data from a standard or real-time data graph. For real-time data graphs, the method attempts to retrieve data from the real-time data graph but falls back to the standard data graph if the real-time data graph is unavailable.
64.0
No
public static ConnectApi.CdpQueryOutput getDataGraphDataWithLookupKeys(String dataGraphEntityName, String lookupKeys, String dataspace, Boolean noCache)
- dataGraphEntityName
Type: String
API name of the data graph to query.
- lookupKeys
Type: String
Lookup key and value to search on. Specify one of these key-value pairs:
- The primary key of the primary DMO, for example,
lookupKeys=[id__c=def] - The primary key of the Individual linked DMO, for example,
lookupKeys=[IndividualLink__dlm.SourceRecordId__c=1111111]
- The primary key of the primary DMO, for example,
- dataspace
Type: String
Name of the data space in which to query the data graph.
- noCache
Type: Boolean
Indicates whether to read data from the standard, non-real-time data graph (
true) or the real-time data graph (false).
Type: ConnectApi.CdpQueryOutput
Retrieve metadata from all data graphs in the default data space. Retrieves data from both standard and real-time data graphs.
59.0
No
public static ConnectApi.CdpDgMetadata getDataGraphMetadata()
Type: ConnectApi.CdpDgMetadata
Retrieve metadata from a specified data graph in the default data space. Retrieves data from both standard and real-time data graphs.
59.0
No
public static ConnectApi.CdpDgMetadata getDataGraphMetadata(String dataGraphEntityName)
- dataGraphEntityName
Type: String
API name of the data graph to query.
Type: ConnectApi.CdpDgMetadata
Retrieve metadata from a specified data graph in a specified data space. Retrieves data from both standard and real-time data graphs.
59.0
No
public static ConnectApi.CdpDgMetadata getDataGraphMetadata(String dataGraphEntityName, String dataspace)
- dataGraphEntityName
Type: String
API name of the data graph to query.
- dataspace
Type: String
Name of the data space in which to query the data graph.
Type: ConnectApi.CdpDgMetadata
Get Insight metadata, including Calculated Insight objects, their dimensions and measures.
52.0
No
public static ConnectApi.CdpQueryMetadataOutput getInsightsMetadata()
Type: ConnectApi.CdpQueryMetadataOutput
Get metadata for a Calculated Insight object. Metadata includes dimensions and measures.
52.0
No
public static ConnectApi.CdpQueryMetadataOutput getInsightsMetadata(String ciName)
- ciName
Type: String
Name of the Calculated Insight object, for example,
IndividualChildrenCount__cio.
Type: ConnectApi.CdpQueryMetadataOutput
Get metadata for a Calculated Insight object and specify the data space. Metadata includes dimensions and measures.
57.0
No
public static ConnectApi.CdpQueryMetadataOutput getInsightsMetadata(String ciName, String dataspace)
- ciName
Type: String
Name of the Calculated Insight object, for example,
IndividualChildrenCount__cio.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.CdpQueryMetadataOutput
Get a list of metadata entities and retrieve only essential fields to optimize performance at scale.
66.0
No
public static ConnectApi.CdpQueryMetadataEntitiesOutput getMetadataEntities()
Type: ConnectApi.CdpQueryMetadataEntitiesOutput
Get a list of metadata entities and retrieve only essential fields to optimize performance at scale. Specify the entity category and type.
66.0
No
public static ConnectApi.CdpQueryMetadataEntitiesOutput getMetadataEntities(String entityCategory, String entityType)
- entityCategory
Type: String
Category of the metadata entity. Supported values are:
Activation_AudienceCG_AudienceContentDirectory_TableEngagementProfileRelatedSegment_MembershipVector_Embedding
- entityType
Type: String
Type of metadata entity. Supported values are:
Calculated_InsightDataLakeObjectDataModelObject
Type: ConnectApi.CdpQueryMetadataEntitiesOutput
Get a list of metadata entities and retrieve only essential fields to optimize performance at scale. Specify the entity category, type, and data space.
66.0
No
public static ConnectApi.CdpQueryMetadataEntitiesOutput getMetadataEntities(String entityCategory, String entityType, String dataspace)
- entityCategory
Type: String
Category of the metadata entity. Supported values are:
Activation_AudienceCG_AudienceContentDirectory_TableEngagementProfileRelatedSegment_MembershipVector_Embedding
- entityType
Type: String
Type of metadata entity. Supported values are:
Calculated_InsightDataLakeObjectDataModelObject
- dataspace
Type: String
Name of the data space in which to query the metadata entities.
Type: ConnectApi.CdpQueryMetadataEntitiesOutput
Get metadata for data model objects in the profile category, including Individual, Contact Point Email, Unified Individual, and Contact Point Address objects. Metadata includes the objects, their fields, and category.
52.0
No
public static ConnectApi.CdpQueryMetadataOutput getProfileMetadata()
Type: ConnectApi.CdpQueryMetadataOutput
Get metadata for a data model object in the profile category, such as Individual, Contact Point Email, Unified Individual, and Contact Point Address. Metadata includes the list of fields, data types, and indexes available for lookup.
52.0
No
public static ConnectApi.CdpQueryMetadataOutput getProfileMetadata(String dataModelName)
- dataModelName
Type: String
Name of the data model object, for example,
UnifiedIndividual__dlm.
Type: ConnectApi.CdpQueryMetadataOutput
Get metadata for a data model object in the profile category, such as Individual, Contact Point Email, Unified Individual, and Contact Point Address. Also, specify the data space. Metadata includes the list of fields, data types, and indexes available for lookup.
57.0
No
public static ConnectApi.CdpQueryMetadataOutput getProfileMetadata(String dataModelName, String dataspace)
- dataModelName
Type: String
Name of the data model object, for example,
UnifiedIndividual__dlm.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.CdpQueryMetadataOutput
Synchronously query data across data model, lake, unified, and linked objects. This query returns up to 49,999 rows.
A newer version of the Query API is available. We recommend using queryAnsiSqlV2(input) and nextBatchAnsiSqlV2(nextBatchId) to take advantage of subsequent requests and larger response sizes.
52.0
No
public static ConnectApi.CdpQueryOutput queryANSISql(ConnectApi.CdpQueryInput input)
- input
Type:
ConnectApi.CdpQueryInputA
ConnectApi.CdpQueryInputbody with the SQL query.
Type: ConnectApi.CdpQueryOutput
Synchronously query data across data model, lake, unified, and linked objects. Specify batch size, offset, and order of the results. This query returns up to 49,999 rows.
A newer version of the Query API is available. We recommend using queryAnsiSqlV2(input) and nextBatchAnsiSqlV2(nextBatchId) to take advantage of subsequent requests and larger response sizes.
53.0
No
public static ConnectApi.CdpQueryOutput queryANSISql(ConnectApi.CdpQueryInput input, Integer batchSize, Integer offset, String orderby)
- input
Type:
ConnectApi.CdpQueryInputA
ConnectApi.CdpQueryInputbody with the SQL query.- batchSize
Type: Integer
Number of records to return. Values are from
1-49999. The default value is49999.- offset
Type: Integer
Number of rows to skip before returning results. The sum of offset and batchSize must be less than
2147483647. The default value is0.- orderby
Type: String
Comma-separated values to sort the results in ascending or descending order, for example,
GenderId__c ASC,Occupation__c DESC.
Type: ConnectApi.CdpQueryOutput
Synchronously query data across data model, lake, unified, and linked objects. Specify batch size, offset, order of the results, and data space. This query returns up to 49,999 rows.
A newer version of the Query API is available. We recommend using queryAnsiSqlV2(input) and nextBatchAnsiSqlV2(nextBatchId) to take advantage of subsequent requests and larger response sizes.
57.0
No
public static ConnectApi.CdpQueryOutput queryANSISql(ConnectApi.CdpQueryInput input, Integer batchSize, Integer offset, String orderby, String dataspace)
- input
Type:
ConnectApi.CdpQueryInputA
ConnectApi.CdpQueryInputbody with the SQL query.- batchSize
Type: Integer
Number of records to return. Values are from
1-49999. The default value is49999.- offset
Type: Integer
Number of rows to skip before returning results. The sum of offset and batchSize must be less than
2147483647. The default value is0.- orderby
Type: String
Comma-separated values to sort the results in ascending or descending order, for example,
GenderId__c ASC,Occupation__c DESC.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.CdpQueryOutput
Query data across data model, lake, unified, and linked objects.
54.0
No
public static ConnectApi.CdpQueryOutputV2 queryAnsiSqlV2(ConnectApi.CdpQueryInput input)
- input
Type:
ConnectApi.CdpQueryInputA
ConnectApi.CdpQueryInputbody with the SQL query.
Type: ConnectApi.CdpQueryOutputV2
Use the nextBatchId in the ConnectApi.CdpQueryOutputV2 output class as the nextBatchId parameter in the nextBatchAnsiSqlV2(nextBatchId) method to continue getting batches of data for up to an hour.
Query data across data model, lake, unified, and linked objects. Also, specify the data space.
57.0
No
public static ConnectApi.CdpQueryOutputV2 queryAnsiSqlV2(ConnectApi.CdpQueryInput input, String dataspace)
- input
Type:
ConnectApi.CdpQueryInputA
ConnectApi.CdpQueryInputbody with the SQL query.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.CdpQueryOutputV2
Use the nextBatchId in the ConnectApi.CdpQueryOutputV2 output class as the nextBatchId parameter in the nextBatchAnsiSqlV2(nextBatchId) method to continue getting batches of data for up to an hour.
Get the next batch of data across data model, lake, unified, and linked objects.
54.0
No
public static ConnectApi.CdpQueryOutputV2 nextBatchAnsiSqlV2(String nextBatchId)
- nextBatchId
Type: String
ID of the next batch. See the Usage section for more information.
Type: ConnectApi.CdpQueryOutputV2
Initially, use the queryAnsiSqlV2(input) method to query up to 8 MB of data. Use the nextBatchId from the ConnectApi.CdpQueryOutputV2 output class as the nextBatchId parameter in this method to get the next batch of data. You can continue using subsequent next batch IDs for up to an hour.
Get the next batch of data across data model, lake, unified, and linked objects. Also, specify the data space.
57.0
No
public static ConnectApi.CdpQueryOutputV2 nextBatchAnsiSqlV2(String nextBatchId, String dataspace)
- nextBatchId
Type: String
ID of the next batch. See the Usage section for more information.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.CdpQueryOutputV2
Initially, use the queryAnsiSqlV2(input) method to query up to 8 MB of data. Use the nextBatchId from the ConnectApi.CdpQueryOutputV2 output class as the nextBatchId parameter in this method to get the next batch of data. You can continue using subsequent next batch IDs for up to an hour.
Submit an SQL query request for execution and retrieve the first chunk of data.
62.0
No
public static ConnectApi.QuerySqlOutput querySql(ConnectApi.QuerySqlInput input)
- input
Type:
ConnectApi.QuerySqlInputInput representation for an SQL query.
Type: ConnectApi.QuerySqlOutput
To get started with writing queries, see Write a Simple Query. For more information about creating SQL statements, see Data 360 SQL Syntax.
Submit a query, check its status, then retrieve and process data in chunks until all results are fetched:
Submit an SQL query request for execution and specify the data space.
62.0
No
public static ConnectApi.QuerySqlOutput querySql(ConnectApi.QuerySqlInput input, String dataspace)
- input
Type:
ConnectApi.QuerySqlInputInput representation for an SQL query.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.QuerySqlOutput
To get started with writing queries, see Write a Simple Query. For more information about creating SQL statements, see Data 360 SQL Syntax.
Submit a query with a data space:
Submit an SQL query request for execution and specify the workload name and data space.
62.0
No
public static ConnectApi.QuerySqlOutput querySql(ConnectApi.QuerySqlInput input, String workloadName, String dataspace)
- input
Type:
ConnectApi.QuerySqlInputInput representation for an SQL query.
- workloadName
Type: String
Description of the scenario, task, or application name that your query handles. Set this value to help Salesforce Customer Support assist you with debugging issues.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.QuerySqlOutput
To get started with writing queries, see Write a Simple Query. For more information about creating SQL statements, see Data 360 SQL Syntax.
Submit a query with a data space and workload name:
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit)
- queryId
Type: String
ID from the initial query to retrieve more results, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- offset
Type: Long
Row number to start with when retrieving the next chunk of query results. Value must be less than the total number of available rows. If unspecified, no rows are skipped.
- rowLimit
Type: Long
Maximum number of rows to include in the response. The actual number of rows returned may be lower than the requested value if fewer are available or if the result set exceeds internal system size limits. Value must be greater than
0.
Type: ConnectApi.QuerySqlPageOutput
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Query additional rows with an offset and row limit:
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify whether to include metadata in the response or not. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, Boolean omitSchema)
- queryId
Type: String
ID from the initial query to retrieve more results, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- offset
Type: Long
Row number to start with when retrieving the next chunk of query results. Value must be less than the total number of available rows. If unspecified, no rows are skipped.
- rowLimit
Type: Long
Maximum number of rows to include in the response. The actual number of rows returned may be lower than the requested value if fewer are available or if the result set exceeds internal system size limits. Value must be greater than
0.- omitSchema
Type: Boolean
Indicates whether to exclude metadata from the response (
true) or not (false). Omitting the schema reduces the amount of data returned and improves performance.
Type: ConnectApi.QuerySqlPageOutput
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Query additional rows with an offset, a row limit, and omitting the schema:
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify the data space. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, String dataspace)
- queryId
Type: String
ID from the initial query to retrieve more results, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- offset
Type: Long
Row number to start with when retrieving the next chunk of query results. Value must be less than the total number of available rows. If unspecified, no rows are skipped.
- rowLimit
Type: Long
Maximum number of rows to include in the response. The actual number of rows returned may be lower than the requested value if fewer are available or if the result set exceeds internal system size limits. Value must be greater than
0.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.QuerySqlPageOutput
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Query additional rows with an offset, row limit, and data space:
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify the data space and whether or not to exclude metadata from the response. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, Boolean omitSchema, String dataspace)
- queryId
Type: String
ID from the initial query to retrieve more results, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- offset
Type: Long
Row number to start with when retrieving the next chunk of query results. Value must be less than the total number of available rows. If unspecified, no rows are skipped.
- rowLimit
Type: Long
Maximum number of rows to include in the response. The actual number of rows returned may be lower than the requested value if fewer are available or if the result set exceeds internal system size limits. Value must be greater than
0.- omitSchema
Type: Boolean
Indicates whether to exclude metadata from the response (
true) or not (false). Omitting the schema reduces the amount of data returned and improves performance.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.QuerySqlPageOutput
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Query additional rows with an offset, row limit, data space, and omitting the schema:
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify the workload name and data space. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, String workloadName, String dataspace)
- queryId
Type: String
ID from the initial query to retrieve more results, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- offset
Type: Long
Row number to start with when retrieving the next chunk of query results. Value must be less than the total number of available rows. If unspecified, no rows are skipped.
- rowLimit
Type: Long
Maximum number of rows to include in the response. The actual number of rows returned may be lower than the requested value if fewer are available or if the result set exceeds internal system size limits. Value must be greater than
0.- workloadName
Type: String
Description of the scenario, task, or application name that your query handles. Set this value to help Salesforce Customer Support assist you with debugging issues.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.QuerySqlPageOutput
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Query additional rows with an offset, row limit, workload name, and data space:
Get additional query results that weren’t returned in the initial request. Paginate through existing query results by specifying the offset and row limit. Also, specify the workload name, data space, and whether or not to exclude metadata from the response. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, Boolean omitSchema, String workloadName, String dataspace)
- queryId
Type: String
ID from the initial query to retrieve more results, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- offset
Type: Long
Row number to start with when retrieving the next chunk of query results. Value must be less than the total number of available rows. If unspecified, no rows are skipped.
- rowLimit
Type: Long
Maximum number of rows to include in the response. The actual number of rows returned may be lower than the requested value if fewer are available or if the result set exceeds internal system size limits. Value must be greater than
0.- omitSchema
Type: Boolean
Indicates whether to exclude metadata from the response (
true) or not (false). Omitting the schema reduces the amount of data returned and improves performance.- workloadName
Type: String
Description of the scenario, task, or application name that your query handles. Set this value to help Salesforce Customer Support assist you with debugging issues.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.QuerySqlPageOutput
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Query additional rows with an offset, row limit, workload name, data space, and omitting the schema:
Delete the specified query and terminate long-running queries that are no longer needed to manage resource consumption.
62.0
No
public static Void cancelQuerySql(String queryId)
- queryId
Type: String
ID of the query to cancel, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.
Type: Void
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Cancel a query:
Delete the specified query and terminate long-running queries that are no longer needed to manage resource consumption. Specify the data space.
62.0
No
public static Void cancelQuerySql(String queryId, String dataspace)
- queryId
Type: String
ID of the query to cancel, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: Void
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Cancel a query with a data space:
Delete the specified query and terminate long-running queries that are no longer needed to manage resource consumption. Specify the data space and workload name.
62.0
No
public static Void cancelQuerySql(String queryId, String workloadName, String dataspace)
- queryId
Type: String
ID of the query to cancel, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- workloadName
Type: String
Description of the scenario, task, or application name that your query handles. Set this value to help Salesforce Customer Support assist you with debugging issues.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: Void
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Cancel a query with a workload name and data space:
Get the status of an SQL query request. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId)
- queryId
Type: String
ID of the query to return the status for, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.
Type: ConnectApi.QuerySqlStatus
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Get the status of a query:
Get the status of an SQL query request and specify the time to wait before returning the response. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, Integer waitTimeMs)
- queryId
Type: String
ID of the query to return the status for, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- waitTimeMs
Type: Integer
Maximum time (in milliseconds) to wait for the result. Configure a wait time up to 10 seconds before returning the status without chunk information. If unspecified, the status is returned immediately. Use this to avoid resource limits by delaying requests.
Type: ConnectApi.QuerySqlStatus
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Get the status of a query with wait time:
Get the status of an SQL query request and specify the data space. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, String dataspace)
- queryId
Type: String
ID of the query to return the status for, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.QuerySqlStatus
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Get the status of a query with a data space:
Get the status of an SQL query request. Specify the data space and time to wait before returning the response. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, String dataspace, Integer waitTimeMs)
- queryId
Type: String
ID of the query to return the status for, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.- waitTimeMs
Type: Integer
Maximum time (in milliseconds) to wait for the result. Configure a wait time up to 10 seconds before returning the status. If unspecified, the status is returned immediately. Use this to avoid resource limits by delaying requests.
Type: ConnectApi.QuerySqlStatus
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Get the status of a query with a data space and wait time:
Get the status of an SQL query request. Specify the workload name and data space. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, String workloadName, String dataspace)
- queryId
Type: String
ID of the query to return the status for, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- workloadName
Type: String
Description of the scenario, task, or application name that your query handles. Set this value to help Salesforce Customer Support assist you with debugging issues.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.QuerySqlStatus
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Get the status of a query with a workload name and data space:
Get the status of an SQL query request. Specify the workload name, data space, and time to wait before returning the response. Results are available for up to 24 hours.
62.0
No
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, String workloadName, String dataspace, Integer waitTimeMs)
- queryId
Type: String
ID of the query to return the status for, for example
MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in thequerySqlresponse.- workloadName
Type: String
Description of the scenario, task, or application name that your query handles. Set this value to help Salesforce Customer Support assist you with debugging issues.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.- waitTimeMs
Type: Integer
Maximum time (in milliseconds) to wait for the result. Configure a wait time up to 10 seconds before returning the status . If unspecified, the status is returned immediately. Use this to avoid resource limits by delaying requests.
Type: ConnectApi.QuerySqlStatus
Retrieve the queryId from the initial query request. To submit an SQL query request for execution, call querySql(input), querySql(input, dataspace), or querySql(input, workloadName, dataspace).
Get the status of a query with a workload name, data space, and wait time:
Query a Calculated Insight object.
52.0
No
public static ConnectApi.CdpQueryOutput queryCalculatedInsights(String ciName, String dimensions, String measures, String orderby, String filters, Integer batchSize, Integer offset)
- ciName
Type: String
Name of the Calculated Insight object, for example,
IndividualChildrenCount__cio.- dimensions
Type: String
Comma-separated list of up to 10 dimensions, such as
GenderId__c, to project. If unspecified, this parameter includes all of the available dimensions.- measures
Type: String
Comma-separated list of up to 5 measures, such as
TotalSales__c, to project. If unspecified, this parameter includes all of the available measures.- orderby
Type: String
Sort order for the result set, such as
GenderId__c ASC,Occupation__c DESC. If unspecified, items are returned in the order they are retrieved.- filters
Type: String
Filter the result set to a more narrow scope or specific type, such as
[GenderId__c=Male,FirstName__c=Angel].- batchSize
Type: Integer
Number of items to return. Values are from 1–4,999. If unspecified, the default value is
4999.- offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
Type: ConnectApi.CdpQueryOutput
Query a Calculated Insight object within a specified time range.
54.0
No
public static ConnectApi.CdpQueryOutput queryCalculatedInsights(String ciName, String dimensions, String measures, String orderby, String filters, Integer batchSize, Integer offset, String timeGranularity)
- ciName
Type: String
Name of the Calculated Insight object, for example,
IndividualChildrenCount__cio.- dimensions
Type: String
Comma-separated list of up to 10 dimensions, such as
GenderId__c, to project. If unspecified, this parameter includes all of the available dimensions.- measures
Type: String
Comma-separated list of up to 5 measures, such as
TotalSales__c, to project. If unspecified, this parameter includes all of the available measures.- orderby
Type: String
Sort order for the result set, such as
GenderId__c ASC,Occupation__c DESC. If unspecified, items are returned in the order they are retrieved.- filters
Type: String
Filter the result set to a more narrow scope or specific type, such as
[GenderId__c=Male,FirstName__c=Angel].- batchSize
Type: Integer
Number of items to return. Values are from 1–4,999. If unspecified, the default value is
4999.- offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
- timeGranularity
Type: String
Time range for the measures. Values are:
HOURDAYMONTHQUARTERYEAR
If unspecified, no time range is applied.
Type: ConnectApi.CdpQueryOutput
Query a Calculated Insight object within a specified time range and specify the data space.
57.0
No
public static ConnectApi.CdpQueryOutput queryCalculatedInsights(String ciName, String dimensions, String measures, String orderby, String filters, Integer batchSize, Integer offset, String timeGranularity, String dataspace)
- ciName
Type: String
Name of the Calculated Insight object, for example,
IndividualChildrenCount__cio.- dimensions
Type: String
Comma-separated list of up to 10 dimensions, such as
GenderId__c, to project. If unspecified, this parameter includes all of the available dimensions.- measures
Type: String
Comma-separated list of up to 5 measures, such as
TotalSales__c, to project. If unspecified, this parameter includes all of the available measures.- orderby
Type: String
Sort order for the result set, such as
GenderId__c ASC,Occupation__c DESC. If unspecified, items are returned in the order they are retrieved.- filters
Type: String
Filter the result set to a more narrow scope or specific type, such as
[GenderId__c=Male,FirstName__c=Angel].- batchSize
Type: Integer
Number of items to return. Values are from 1–4,999. If unspecified, the default value is
4999.- offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
- timeGranularity
Type: String
Time range for the measures. Values are:
HOURDAYMONTHQUARTERYEAR
If unspecified, no time range is applied.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.
Type: ConnectApi.CdpQueryOutput
Query a Profile data model object using filters.
52.0
No
public static ConnectApi.CdpQueryOutput queryProfileApi(String dataModelName, String filters, String fields, Integer batchSize, Integer offset, String orderby)
- dataModelName
Type: String
Name of the data model object, for example,
UnifiedIndividual__dlm.- filters
Type: String
Comma-separated list of equality expressions within square brackets, for example,
[FirstName__c=DON].- fields
Type: String
Comma-separated list of up to 50 field names that you want to include in the result, for example,
Id__c,FirstName__c,GenderId__c,Occupation__c. If unspecified,Id__cis returned.- batchSize
Type: Integer
Number of items to return. Values are from 1–4,999. If unspecified, the default value is
100.- offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
- orderby
Type: String
Sort order for the result set, such as
GenderId__c ASC,Occupation__c DESC. If unspecified, items are returned in the order they are retrieved.
Type: ConnectApi.CdpQueryOutput
Query a Profile data model object using filters and a search key.
52.0
No
public static ConnectApi.CdpQueryOutput queryProfileApi(String dataModelName, String id, String searchKey, String filters, String fields, Integer batchSize, Integer offset, String orderby)
- dataModelName
Type: String
Name of the data model object, for example,
UnifiedIndividual__dlm.- id
Type: String
Value of the primary or secondary key field, for example,
John. If unspecified, defaults to the value of the primary key field.- searchKey
Type: String
If a field other than the primary key is used, name of the key field, for example,
FirstName__c.- filters
Type: String
Comma-separated list of equality expressions within square brackets, for example,
[FirstName__c=DON].- fields
Type: String
Comma-separated list of up to 50 field names that you want to include in the result, for example,
Id__c,FirstName__c,GenderId__c,Occupation__c. If unspecified,Id__cis returned.- batchSize
Type: Integer
Number of items to return. Values are from 1–4,999. If unspecified, the default value is
100.- offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
- orderby
Type: String
Sort order for the result set, such as
GenderId__c ASC,Occupation__c DESC. If unspecified, items are returned in the order they are retrieved.
Type: ConnectApi.CdpQueryOutput
Query a Profile data model object and a child object using filters and a search key.
52.0
No
public static ConnectApi.CdpQueryOutput queryProfileApi(String dataModelName, String id, String childDataModelName, String searchKey, String filters, String fields, Integer batchSize, Integer offset, String orderby)
- dataModelName
Type: String
Name of the data model object, for example,
UnifiedIndividual__dlm.- id
Type: String
Value of the primary or secondary key field, for example,
John. If unspecified, defaults to the value of the primary key field.- childDataModelName
Type: String
Name of the child data model object, for example,
UnifiedContactPointEmail__dlm.- searchKey
Type: String
If a field other than the primary key is used, name of the key field, for example,
FirstName__c.- filters
Type: String
Comma-separated list of equality expressions within square brackets, for example,
[FirstName__c=DON]. Filters are applied to the parent object only.- fields
Type: String
Comma-separated list of child object field names that you want to include in the result, for example,
Id__c,EmailAddress__c. If unspecified, the first 10 alphabetically sorted fields are returned.- batchSize
Type: Integer
Number of items to return. Values are from 1–4,999. If unspecified, the default value is
100.- offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
- orderby
Type: String
Sort order for the result set, such as
GenderId__c ASC,Occupation__c DESC. If unspecified, items are returned in the order they are retrieved.
Type: ConnectApi.CdpQueryOutput
Query a Profile data model object and a Calculated Insight object using filters and a search key.
52.0
No
public static ConnectApi.CdpQueryOutput queryProfileApi(String dataModelName, String id, String ciName, String searchKey, String dimensions, String measures, String filters, String fields, Integer batchSize, Integer offset, String orderby)
- dataModelName
Type: String
Name of the data model object, for example,
UnifiedIndividual__dlm.- id
Type: String
Value of the primary or secondary key field, for example,
John. If unspecified, defaults to the value of the primary key field.- ciName
Type: String
Name of the Calculated Insight object, for example,
IndividualChildrenCount__cio.- searchKey
Type: String
If a field other than the primary key is used, name of the key field, for example,
FirstName__c.- dimensions
Type: String
Comma-separated list of up to 10 dimensions, such as
GenderId__c, to project. If unspecified, this parameter includes all of the available dimensions.- measures
Type: String
Comma-separated list of up to 5 measures, such as
TotalSales__c, to project. If unspecified, this parameter includes all of the available measures.- filters
Type: String
Comma-separated list of equality expressions within square brackets, for example,
[FirstName__c=DON].- fields
Type: String
Comma-separated list of up to 50 field names that you want to include in the result, for example,
Id__c,FirstName__c,GenderId__c,Occupation__c. If unspecified,Id__cis returned.- batchSize
Type: Integer
Number of items to return. Values are from 1–4,999. If unspecified, the default value is
100.- offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
- orderby
Type: String
Sort order for the result set, such as
GenderId__c ASC,Occupation__c DESC. If unspecified, items are returned in the order they are retrieved.
Type: ConnectApi.CdpQueryOutput
Query a Profile data model object and a Calculated Insight object using filters, a search key, and a time range.
54.0
No
public static ConnectApi.CdpQueryOutput queryProfileApi(String dataModelName, String id, String ciName, String searchKey, String dimensions, String measures, String filters, String fields, Integer batchSize, Integer offset, String orderby, String timeGranularity)
dataModelName
Type: String
Name of the data model object, for example, UnifiedIndividual__dlm.
id
Type: String
Value of the primary or secondary key field, for example, John. If unspecified, defaults to the value of the primary key field.
ciName
Type: String
Name of the Calculated Insight object, for example, IndividualChildrenCount__cio.
searchKey
Type: String
If a field other than the primary key is used, name of the key field, for example, FirstName__c.
dimensions
Type: String
Comma-separated list of up to 10 dimensions, such as GenderId__c, to project. If unspecified, this parameter includes all of the available dimensions.
measures
Type: String
Comma-separated list of up to 5 measures, such as TotalSales__c, to project. If unspecified, this parameter includes all of the available measures.
filters
Type: String
Comma-separated list of equality expressions within square brackets, for example, [FirstName__c=DON].
fields
Type: String
Comma-separated list of up to 50 field names that you want to include in the result, for example, Id__c,FirstName__c,GenderId__c,Occupation__c. If unspecified, Id__c is returned.
batchSize
Type: Integer
Number of items to return. Values are from 1–4,999. If unspecified, the default value is 100.
offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
orderby
Type: String
Sort order for the result set, such as GenderId__c ASC,Occupation__c DESC. If unspecified, items are returned in the order they are retrieved.
timeGranularity
Type: String
Time range for the measures. Values are:
HOURDAYMONTHQUARTERYEAR
If unspecified, no time range is applied.
Type: ConnectApi.CdpQueryOutput
Query a Profile data model object and a Calculated Insight object using filters, a search key, a time range, and a data space.
57.0
No
public static ConnectApi.CdpQueryOutput queryProfileApi(String dataModelName, String id, String ciName, String searchKey, String dimensions, String measures, String filters, String fields, Integer batchSize, Integer offset, String orderby, String timeGranularity, String dataspace)
dataModelName
Type: String
Name of the data model object, for example, UnifiedIndividual__dlm.
id
Type: String
Value of the primary or secondary key field, for example, John. If unspecified, defaults to the value of the primary key field.
ciName
Type: String
Name of the Calculated Insight object, for example, IndividualChildrenCount__cio.
searchKey
Type: String
If a field other than the primary key is used, name of the key field, for example, FirstName__c.
dimensions
Type: String
Comma-separated list of up to 10 dimensions, such as GenderId__c, to project. If unspecified, this parameter includes all of the available dimensions.
measures
Type: String
Comma-separated list of up to 5 measures, such as TotalSales__c, to project. If unspecified, this parameter includes all of the available measures.
filters
Type: String
Comma-separated list of equality expressions within square brackets, for example, [FirstName__c=DON].
fields
Type: String
Comma-separated list of up to 50 field names that you want to include in the result, for example, Id__c,FirstName__c,GenderId__c,Occupation__c. If unspecified, Id__c is returned.
batchSize
Type: Integer
Number of items to return. Values are from 1–4,999. If unspecified, the default value is 100.
offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
orderby
Type: String
Sort order for the result set, such as GenderId__c ASC,Occupation__c DESC. If unspecified, items are returned in the order they are retrieved.
timeGranularity
Type: String
Time range for the measures. Values are:
HOURDAYMONTHQUARTERYEAR
If unspecified, no time range is applied.
dataspace
Type: String
Name of the data space to query. If unspecified, the default data space is used.
Type: ConnectApi.CdpQueryOutput
Look up objects by source ID.
54.0
No
public static ConnectApi.CdpQueryDataOutput universalIdLookupBySourceId(String entityName, String dataSourceId, String dataSourceObjectId, String sourceRecordId)
- entityName
Type: String
Entity name.
- dataSourceId
Type: String
Data source ID.
- dataSourceObjectId
Type: String
Data source object ID.
- sourceRecordId
Type: String
Source record ID.
Type: ConnectApi.CdpQueryDataOutput
Look up objects by source ID and specify the data space.
57.0
No
public static ConnectApi.CdpQueryDataOutput universalIdLookupBySourceId(String entityName, String dataSourceId, String dataSourceObjectId, String sourceRecordId, String dataspace)
- entityName
Type: String
Entity name.
- dataSourceId
Type: String
Data source ID.
- dataSourceObjectId
Type: String
Data source object ID.
- sourceRecordId
Type: String
Source record ID.
- dataspace
Type: String
Name of the data space to query. If unspecified, the
defaultdata space is used.