Newer Version Available
CdpQuery Class
Namespace
CdpQuery Methods
getAllMetadata()
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryMetadataOutput getAllMetadata()
Return Value
getAllMetadata(entityType, entityCategory, entityName)
API Version
54.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryMetadataOutput getAllMetadata(String entityType, String entityCategory, String entityName)
Parameters
- entityType
- Type: String
- Type of metadata entity requested. Valid values are DataLakeObject, DataModelObject, and CalculatedInsight. If unspecified, all types are returned.
- entityCategory
- Type: String
- Category of the metadata entity. Valid values are Profile, Engagement, and Related. 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.
Return Value
getAllMetadata(entityType, entityCategory, entityName, dataspace)
API Version
57.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryMetadataOutput getAllMetadata(String entityType, String entityCategory, String entityName, String dataspace)
Parameters
- entityType
- Type: String
- Type of metadata entity requested. Valid values are DataLakeObject, DataModelObject, and CalculatedInsight. If unspecified, all types are returned.
- entityCategory
- Type: String
- Category of the metadata entity. Valid values are Profile, Engagement, and Related. 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 default data space is used.
Return Value
getInsightsMetadata()
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryMetadataOutput getInsightsMetadata()
Return Value
getInsightsMetadata(ciName)
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryMetadataOutput getInsightsMetadata(String ciName)
Parameters
- ciName
- Type: String
- Name of the Calculated Insight object, for example, IndividualChildrenCount__cio.
Return Value
getInsightsMetadata(ciName, dataspace)
API Version
57.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryMetadataOutput getInsightsMetadata(String ciName, String dataspace)
Parameters
Return Value
getProfileMetadata()
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryMetadataOutput getProfileMetadata()
Return Value
getProfileMetadata(dataModelName)
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryMetadataOutput getProfileMetadata(String dataModelName)
Parameters
- dataModelName
- Type: String
- Name of the data model object, for example, UnifiedIndividual__dlm.
Return Value
getProfileMetadata(dataModelName, dataspace)
API Version
57.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryMetadataOutput getProfileMetadata(String dataModelName, String dataspace)
Parameters
Return Value
queryANSISql(input)
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutput queryANSISql(ConnectApi.CdpQueryInput input)
Parameters
- input
- Type: ConnectApi.CdpQueryInput
- A ConnectApi.CdpQueryInput body with the SQL query.
Return Value
queryANSISql(input, batchSize, offset, orderby)
API Version
53.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutput queryANSISql(ConnectApi.CdpQueryInput input, Integer batchSize, Integer offset, String orderby)
Parameters
- input
- Type: ConnectApi.CdpQueryInput
- A ConnectApi.CdpQueryInput body with the SQL query.
- batchSize
- Type: Integer
- Number of records to return. Values are from 1-49999. The default value is 49999.
- 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 is 0.
- orderby
- Type: String
- Comma-separated values to sort the results in ascending or descending order, for example, GenderId__c ASC,Occupation__c DESC.
Return Value
queryANSISql(input, batchSize, offset, orderby, dataspace)
API Version
57.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutput queryANSISql(ConnectApi.CdpQueryInput input, Integer batchSize, Integer offset, String orderby, String dataspace)
Parameters
- input
- Type: ConnectApi.CdpQueryInput
- A ConnectApi.CdpQueryInput body with the SQL query.
- batchSize
- Type: Integer
- Number of records to return. Values are from 1-49999. The default value is 49999.
- 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 is 0.
- 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 default data space is used.
Return Value
queryAnsiSqlV2(input)
API Version
54.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutputV2 queryAnsiSqlV2(ConnectApi.CdpQueryInput input)
Parameters
- input
- Type: ConnectApi.CdpQueryInput
- A ConnectApi.CdpQueryInput body with the SQL query.
Return Value
Usage
queryAnsiSqlV2(input, dataspace)
API Version
57.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutputV2 queryAnsiSqlV2(ConnectApi.CdpQueryInput input, String dataspace)
Parameters
- input
- Type: ConnectApi.CdpQueryInput
- A ConnectApi.CdpQueryInput body with the SQL query.
- dataspace
- Type: String
- Name of the data space to query. If unspecified, the default data space is used.
Return Value
Usage
nextBatchAnsiSqlV2(nextBatchId)
API Version
54.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutputV2 nextBatchAnsiSqlV2(String nextBatchId)
Parameters
- nextBatchId
- Type: String
- ID of the next batch. See the Usage section for more information.
Return Value
Usage
nextBatchAnsiSqlV2(nextBatchId, dataspace)
API Version
57.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutputV2 nextBatchAnsiSqlV2(String nextBatchId, String dataspace)
Parameters
Return Value
Usage
querySql(input)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlOutput querySql(ConnectApi.QuerySqlInput input)
Parameters
- input
- Type: ConnectApi.QuerySqlInput
- Input representation for an SQL query.
Return Value
Usage
To get started with writing queries, see Write a Simple Query. For more information about creating SQL statements, see Data Cloud SQL Syntax.
Example
querySql(input, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlOutput querySql(ConnectApi.QuerySqlInput input, String dataspace)
Parameters
- input
- Type: ConnectApi.QuerySqlInput
- Input representation for an SQL query.
- dataspace
- Type: String
- Name of the data space to query. If unspecified, the default data space is used.
Return Value
Usage
To get started with writing queries, see Write a Simple Query. For more information about creating SQL statements, see Data Cloud SQL Syntax.
Example
querySql(input, workloadName, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlOutput querySql(ConnectApi.QuerySqlInput input, String workloadName, String dataspace)
Parameters
- input
- Type: ConnectApi.QuerySqlInput
- Input 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 default data space is used.
Return Value
Usage
To get started with writing queries, see Write a Simple Query. For more information about creating SQL statements, see Data Cloud SQL Syntax.
Example
querySqlRows(queryId, offset, rowLimit)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit)
Parameters
- 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 the querySql response.
- 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. Value must be greater than 0. Fewer rows may be returned.
Return Value
Usage
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).
Example
querySqlRows(queryId, offset, rowLimit, omitSchema)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, Boolean omitSchema)
Parameters
- 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 the querySql response.
- 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. Value be greater than 0. Fewer rows may be returned.
- 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.
Return Value
Usage
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).
Example
querySqlRows(queryId, offset, rowLimit, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, String dataspace)
Parameters
- 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 the querySql response.
- 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. Value be greater than 0. Fewer rows may be returned.
- dataspace
- Type: String
- Name of the data space to query. If unspecified, the default data space is used.
Return Value
Usage
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).
Example
querySqlRows(queryId, offset, rowLimit, omitSchema, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, Boolean omitSchema, String dataspace)
Parameters
- 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 the querySql response.
- 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. Value be greater than 0. Fewer rows may be returned.
- 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 default data space is used.
Return Value
Usage
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).
Example
querySqlRows(queryId, offset, rowLimit, workloadName, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, String workloadName, String dataspace)
Parameters
- 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 the querySql response.
- 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. Value be greater than 0. Fewer rows may be returned.
- 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 default data space is used.
Return Value
Usage
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).
Example
querySqlRows(queryId, offset, rowLimit, omitSchema, workloadName, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlPageOutput querySqlRows(String queryId, Long offset, Long rowLimit, Boolean omitSchema, String workloadName, String dataspace)
Parameters
- 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 the querySql response.
- 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. Value be greater than 0. Fewer rows may be returned.
- 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 default data space is used.
Return Value
Usage
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).
Example
cancelQuerySql(queryId)
API Version
62.0
Requires Chatter
No
Signature
public static Void cancelQuerySql(String queryId)
Parameters
- queryId
- Type: String
- ID of the query to cancel, for example MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in the querySql response.
Return Value
Type: Void
Usage
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).
Example
cancelQuerySql(queryId, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static Void cancelQuerySql(String queryId, String dataspace)
Parameters
Return Value
Type: Void
Usage
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).
Example
cancelQuerySql(queryId, workloadName, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static Void cancelQuerySql(String queryId, String workloadName, String dataspace)
Parameters
- queryId
- Type: String
- ID of the query to cancel, for example MTAuMjMuMTU2LjIwODo3NDg0_49169cf8-a6f4-738f-6544-c3a7ba2ff548. The query ID is returned in the querySql response.
- 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 default data space is used.
Return Value
Type: Void
Usage
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).
Example
querySqlStatus(queryId)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId)
Parameters
- 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 the querySql response.
Return Value
Usage
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).
Example
querySqlStatus(queryId, waitTimeMs)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, Integer waitTimeMs)
Parameters
- 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 the querySql response.
- 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.
Return Value
Usage
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).
Example
querySqlStatus(queryId, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, String dataspace)
Parameters
Return Value
Usage
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).
Example
querySqlStatus(queryId, dataspace, waitTimeMs)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, String dataspace, Integer waitTimeMs)
Parameters
- 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 the querySql response.
- dataspace
- Type: String
- Name of the data space to query. If unspecified, the default data 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 without chunk information. If unspecified, the status is returned immediately. Use this to avoid resource limits by delaying requests.
Return Value
Usage
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).
Example
querySqlStatus(queryId, workloadName, dataspace)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, String workloadName, String dataspace)
Parameters
- 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 the querySql response.
- 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 default data space is used.
Return Value
Usage
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).
Example
querySqlStatus(queryId, workloadName, dataspace, waitTimeMs)
API Version
62.0
Requires Chatter
No
Signature
public static ConnectApi.QuerySqlStatus querySqlStatus(String queryId, String workloadName, String dataspace, Integer waitTimeMs)
Parameters
- 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 the querySql response.
- 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 default data 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 without chunk information. If unspecified, the status is returned immediately. Use this to avoid resource limits by delaying requests.
Return Value
Usage
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).
Example
queryCalculatedInsights(ciName, dimensions, measures, orderby, filters, batchSize, offset)
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutput queryCalculatedInsights(String ciName, String dimensions, String measures, String orderby, String filters, Integer batchSize, Integer offset)
Parameters
- 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.
Return Value
queryCalculatedInsights(ciName, dimensions, measures, orderby, filters, batchSize, offset, timeGranularity)
API Version
54.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutput queryCalculatedInsights(String ciName, String dimensions, String measures, String orderby, String filters, Integer batchSize, Integer offset, String timeGranularity)
Parameters
- 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:
- HOUR
- DAY
- MONTH
- QUARTER
- YEAR
Return Value
queryCalculatedInsights(ciName, dimensions, measures, orderby, filters, batchSize, offset, timeGranularity, dataspace)
API Version
57.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutput queryCalculatedInsights(String ciName, String dimensions, String measures, String orderby, String filters, Integer batchSize, Integer offset, String timeGranularity, String dataspace)
Parameters
- 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:
- HOUR
- DAY
- MONTH
- QUARTER
- YEAR
- dataspace
- Type: String
- Name of the data space to query. If unspecified, the default data space is used.
Return Value
queryProfileApi(dataModelName, filters, fields, batchSize, offset, orderby)
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutput queryProfileApi(String dataModelName, String filters, String fields, Integer batchSize, Integer offset, String orderby)
Parameters
- 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__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.
Return Value
queryProfileApi(dataModelName, id, searchKey, filters, fields, batchSize, offset, orderby)
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutput queryProfileApi(String dataModelName, String id, String searchKey, String filters, String fields, Integer batchSize, Integer offset, String orderby)
Parameters
- 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__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.
Return Value
queryProfileApi(dataModelName, id, childDataModelName, searchKey, filters, fields, batchSize, offset, orderby)
API Version
52.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryOutput queryProfileApi(String dataModelName, String id, String childDataModelName, String searchKey, String filters, String fields, Integer batchSize, Integer offset, String orderby)
Parameters
- 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.
Return Value
queryProfileApi(dataModelName, id, ciName, searchKey, dimensions, measures, filters, fields, batchSize, offset, orderby)
API Version
52.0
Requires Chatter
No
Signature
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)
Parameters
- 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.
Return Value
queryProfileApi(dataModelName, id, ciName, searchKey, dimensions, measures, filters, fields, batchSize, offset, orderby, timeGranularity)
API Version
54.0
Requires Chatter
No
Signature
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)
Parameters
- 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:
- HOUR
- DAY
- MONTH
- QUARTER
- YEAR
Return Value
queryProfileApi(dataModelName, id, ciName, searchKey, dimensions, measures, filters, fields, batchSize, offset, orderby, timeGranularity, dataspace)
API Version
57.0
Requires Chatter
No
Signature
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)
Parameters
- 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:
- HOUR
- DAY
- MONTH
- QUARTER
- YEAR
- dataspace
- Type: String
- Name of the data space to query. If unspecified, the default data space is used.
Return Value
universalIdLookupBySourceId(entityName, dataSourceId, dataSourceObjectId, sourceRecordId)
API Version
54.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryDataOutput universalIdLookupBySourceId(String entityName, String dataSourceId, String dataSourceObjectId, String sourceRecordId)
Parameters
Return Value
universalIdLookupBySourceId(entityName, dataSourceId, dataSourceObjectId, sourceRecordId, dataspace)
API Version
57.0
Requires Chatter
No
Signature
public static ConnectApi.CdpQueryDataOutput universalIdLookupBySourceId(String entityName, String dataSourceId, String dataSourceObjectId, String sourceRecordId, String dataspace)