@Throws(value=AnalyticsErrorTypeProvider.class) public class SalesforceAnalyticsOperations extends AnalyticsOperations<SalesforceAnalyticsService>
| Constructor and Description |
|---|
SalesforceAnalyticsOperations() |
| Modifier and Type | Method and Description |
|---|---|
String |
createDataSet(SalesforceAnalyticsConfig config,
SalesforceAnalyticsConnection connection,
String type,
DataSet dataSetInfo)
Creates a new data set into Salesforce Analytics Cloud system and returns the identifier of created data set within Salesforce Analytics Cloud system.
|
void |
deleteDataSet(SalesforceAnalyticsConfig config,
SalesforceAnalyticsConnection connection,
String dataSetId)
Deletes specified data set from Salesforce Analytics Cloud system
|
void |
startDataProcessing(SalesforceAnalyticsConfig config,
SalesforceAnalyticsConnection connection,
String dataSetId)
Tells to Salesforce Analytics Cloud system to start processing the records uploaded so far into given data set
|
org.mule.runtime.api.bulk.BulkOperationResult<Map<String,String>> |
uploadExternalData(SalesforceAnalyticsConfig config,
SalesforceAnalyticsConnection connection,
String dataSetId,
List<Map<String,Object>> records)
Inserts given records into data set with given id from Salesforce Analytics Cloud system.
|
String |
uploadExternalDataIntoNewDataSetAndStartProcessing(SalesforceAnalyticsConfig config,
SalesforceAnalyticsConnection connection,
String type,
DataSet dataSetInfo,
List<Map<String,Object>> records)
Creates data set uploads data into it and tells to Salesforce Analytics Cloud system to start processing uploaded data.
|
newExecutionBuilder@MediaType(value="*/*") public String createDataSet(@Config SalesforceAnalyticsConfig config, @Connection SalesforceAnalyticsConnection connection, @Path(type=FILE) String type, @ParameterGroup(name="DataSet info") DataSet dataSetInfo)
config - config to be used with the operationconnection - object holding connection detailstype - represents the type of the DataSet to be createddataSetInfo - containing:
operation - indicates which operation to use when you’re loading data into the DataSet.
description - data set description
label - data set label
dataSetName - data set name
edgemartContainer - The name of the app that contains the dataset.
public org.mule.runtime.api.bulk.BulkOperationResult<Map<String,String>> uploadExternalData(@Config SalesforceAnalyticsConfig config, @Connection SalesforceAnalyticsConnection connection, @MetadataKeyId(value=SalesforceAnalyticsMetadataResolver.class) String dataSetId, @Content @TypeResolver(value=SalesforceAnalyticsMetadataResolver.class) List<Map<String,Object>> records)
config - config to be used with the operationconnection - object holding connection detailsrecords - list of records to be inserteddataSetId - identifier of data set within Salesforce Analytics Cloud systempublic void startDataProcessing(@Config
SalesforceAnalyticsConfig config,
@Connection
SalesforceAnalyticsConnection connection,
@MetadataKeyId(value=SalesforceAnalyticsMetadataResolver.class)
String dataSetId)
config - config to be used with the operationconnection - object holding connection detailsdataSetId - identifier of data set to be processed@MediaType(value="*/*") public String uploadExternalDataIntoNewDataSetAndStartProcessing(@Config SalesforceAnalyticsConfig config, @Connection SalesforceAnalyticsConnection connection, @Path(type=FILE) String type, @ParameterGroup(name="DataSet info") DataSet dataSetInfo, @Content List<Map<String,Object>> records)
config - config to be used with the operationconnection - object holding connection detailsrecords - list of records to be insertedtype - type of the records to be inserted. This is automatically computed based on metadata extracted from file provided with configuration elementdataSetInfo - containing:
operation - indicates which operation to use when you’re loading data into the DataSet.
description - data set description
label - data set label
dataSetName - data set name
edgemartContainer - The name of the app that contains the dataset.
public void deleteDataSet(@Config
SalesforceAnalyticsConfig config,
@Connection
SalesforceAnalyticsConnection connection,
@MetadataKeyId(value=SalesforceAnalyticsMetadataResolver.class)
String dataSetId)
config - config to be used with the operationconnection - object holding connection detailsdataSetId - - identifier of data set to be deletedCopyright © 2025 MuleSoft, Inc.. All rights reserved.