WorkGrid Apex API Developer Reference

xpna.GlobalPlanService

global with sharing class GlobalPlanService

This class contains global methods to perform plan related operations.

This class contains deprecated items.

Enums

FilterComparisonOperator

Represents the condition operators that you can use to apply filter logic.

Value Description
EQUAL Displays the operator types equals.
NOT_EQUAL Displays the operator type not equals.
CONTAINS Displays the operator type contains.
NOT_CONTAINS Displays the operator type not contains.
START_WITH Displays the operator type start with.
IS_NULL Displays the operator type null.
IS_NOT_NULL Displays the operator type not null.

FilterLogicalOperator

Represents the operators that you can use to apply filter logic.

Value Description
AND_LOGIC Represents the AND logical operator. The filter expression evaluates to true when all of the specified filters are true.
OR_LOGIC Represents the OR logical operator. The filter expression evaluates to true when at least one of the specified filters is true.

Methods

createBlankPlans

global static xpna.GlobalPlanService.PlanBlankCreateResponseCollection createBlankPlans(xpna.GlobalPlanService.PlanBlankCreateRequestCollection request)

Creates a blank plan.

Input Parameters

Name Type Description
request xpna.GlobalPlanService.PlanBlankCreateRequestCollection Contains the information needed to create a blank plan.

Return Value

The PlanBlankCreateResponse of the newly created plan.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.


//Create an instance of PlanBlankCreateRequest.
xpna.GlobalPlanService.PlanBlankCreateRequest request = new xpna.GlobalPlanService.PlanBlankCreateRequest();
request.planName = 'Blank Plan Example Name';
request.currentScenarioName = 'Initial';
request.description = 'Description';

//Get the dimensions that are used to create the plan.
Id accountDimensionId = [SELECT Id from Dimension__c where Name = 'Account'][0].Id;
Id projectManagerDimensionId = [SELECT Id from Dimension__c where Name = 'Project Manager'][0].Id;
Id practice0DimensionId = [SELECT Id from Dimension__c where Name = 'Practice Level 00'][0].Id;
Id timePeriodYearDimensionId = [SELECT Id from Dimension__c where Name = 'Time Period Year'][0].Id;

//Get the measure that is used to create the plan.
Id forecastMeasureId = [SELECT Id from Measure__c where Name = 'Forecast'][0].Id;

//Get dimensions that are used to create the plan as rows.
request.dimensionRowIds = new List<Id>{accountDimensionId, projectManagerDimensionId, practice0DimensionId};

//Get dimensions that are used to create the plan as columns.
request.dimensionColumnIds = new List<Id>{timePeriodYearDimensionId};

//Get the measures that are used to create the plan.
request.measureIds = new List<Id>{forecastMeasureId};

//Optional, by default it is true if you do not provide it.
request.measureAsColumns = true;

//Optional, by default it is null if you do not provide it.
List<xpna__RateTable__c> rateTableList = [SELECT Id FROM xpna__RateTable__c WHERE Name = 'Rate Table'];
Id rateTableId = rateTableList[0].Id;
request.rateTableId = rateTableId;

//Specify the grid view.
request.gridView = 'TreeGrid';

//Create an instance of the object request.
xpna.GlobalPlanService.PlanBlankCreateRequestCollection requestCollection = new xpna.GlobalPlanService.PlanBlankCreateRequestCollection();
//Add a new PlanBlankCreateRequest to the request list.
requestCollection.planBlankCreateRequests.add(request);

//Call the API method.
xpna.GlobalPlanService.PlanBlankCreateResponseCollection result = xpna.GlobalPlanService.createBlankPlans(requestCollection);

createPlansFromAnalytics

global static xpna.GlobalPlanService.PlanFromAnalyticsCreateResponseCollection createPlansFromAnalytics(xpna.GlobalPlanService.PlanFromAnalyticsCreateRequestCollection request)

Creates a plan from Analytics data source.

Input Parameters

Name Type Description
request xpna.GlobalPlanService.PlanFromAnalyticsCreateRequestCollection Contains the information needed to create a plan from data source.

Return Value

The PlanFromAnalyticsCreateResponse of the newly created plan.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.


//Create an instance of PlanFromAnalyticsCreateRequest.
xpna.GlobalPlanService.PlanFromAnalyticsCreateRequest request = new xpna.GlobalPlanService.PlanFromAnalyticsCreateRequest();
request.planName = 'Plan From Analytics Example Name';
request.currentScenarioName = 'Initial';
request.description = 'Description';

//Get the Data Source that is used to create the plan.
Id dataSourceId = [SELECT Id from Datasource__c where Name='Service Forecasting'][0].Id;
request.dataSourceId = dataSourceId;

//Get the dimensions that are used to create the plan.
Id accountDimensionId = [SELECT Id from Dimension__c where Name = 'Account'][0].Id;
Id projectManagerDimensionId = [SELECT Id from Dimension__c where Name = 'Project Manager'][0].Id;
Id practice0DimensionId = [SELECT Id from Dimension__c where Name = 'Practice Level 00'][0].Id;
Id timePeriodYearDimensionId = [SELECT Id from Dimension__c where Name = 'Time Period Year'][0].Id;

//Get the measure that is used to create the plan.
Id forecastMeasureId = [SELECT Id from Measure__c where Name = 'Forecast'][0].Id;

//Get dimensions that are used to create the plan as rows.
request.dimensionRowIds = new List<Id>{accountDimensionId, projectManagerDimensionId, practice0DimensionId};

//Get dimensions that are used to create the plan as columns.
request.dimensionColumnIds = new List<Id>{timePeriodYearDimensionId};

//Get the measures that are used to create the plan.
request.measureIds = new List<Id>{forecastMeasureId};

//Optional, by default it is true if you do not provide it.
request.measureAsColumns = true;

//Optional, by default it is null if you do not provide it.
List<xpna__RateTable__c> rateTableList = [SELECT Id FROM xpna__RateTable__c WHERE Name = 'Rate Table'];
Id rateTableId = rateTableList[0].Id;
request.rateTableId = rateTableId;

//Optional, set a dimension value map.
Id dimensionMapped = timePeriodYearDimensionId;
Map<String, String> valueMappings = new Map<String, String>();
valueMappings.put('Australia', 'Spain');
valueMappings.put('United Kingdom', 'Spain');

Map<Id, Map<String, String>> dimensionValueMappings = new Map<Id, Map<String, String>>();
dimensionValueMappings.put(dimensionMapped, valueMappings);

xpna.GlobalPlanService.DimensionValueMappingCollection dimensionValueMappingCollection = new xpna.GlobalPlanService.DimensionValueMappingCollection(); 
dimensionValueMappingCollection.dimensionValueMappings = dimensionValueMappings;
request.valueMappings = dimensionValueMappingCollection;

//Optional, filters for the dimension value.
xpna.GlobalPlanService.TreeFilterCollection filterCollection = new xpna.GlobalPlanService.TreeFilterCollection();
xpna.GlobalPlanService.ConditionGroup conditionGroup = new xpna.GlobalPlanService.ConditionGroup();

//Define a condition to filter by the 'Time Period Year' dimension, allowing only values equal to '2025'.
xpna.GlobalPlanService.Condition condition1 = new xpna.GlobalPlanService.Condition();
condition1.dimensionId = timePeriodYearDimensionId;
condition1.comparisonOperator = xpna.GlobalPlanService.FilterComparisonOperator.EQUAL;
condition1.values = new List<String>{ '2025'};

//Define a condition to filter by the 'Time Period Year' dimension, allowing only values equal to '2024'.
xpna.GlobalPlanService.Condition condition2 = new xpna.GlobalPlanService.Condition();
condition2.dimensionId = timePeriodYearDimensionId;
condition2.comparisonOperator = xpna.GlobalPlanService.FilterComparisonOperator.EQUAL;
condition2.values = new List<String>{ '2024'};

//Set the logical operator for the filter group.
conditionGroup.logicalOperator = xpna.GlobalPlanService.FilterLogicalOperator.OR_LOGIC;

//Add the conditions to the condition group
conditionGroup.filters.add(condition1);
conditionGroup.filters.add(condition2);

//Set the condition group to the filter request collection
filterCollection.filters = conditionGroup;
request.filters = filterCollection;

//Specify the grid view.
request.gridView = 'TreeGrid';

//Create an instance of the object request.
xpna.GlobalPlanService.PlanFromAnalyticsCreateRequestCollection requestCollection = new xpna.GlobalPlanService.PlanFromAnalyticsCreateRequestCollection();
//Add a new PlanFromAnalyticsCreateRequest to the request list.
requestCollection.planFromAnalyticsCreateRequests.add(request);

//Call the API method.
xpna.GlobalPlanService.PlanFromAnalyticsCreateResponseCollection result = xpna.GlobalPlanService.createPlansFromAnalytics(requestCollection);

createMultiplePlansFromAnalytics

global static xpna.GlobalPlanService.MultiPlanCreateResponseCollection createMultiplePlansFromAnalytics(xpna.GlobalPlanService.MultiPlanCreateRequestCollection request)

Creates multiple plans from an Analytics data source.

Input Parameters

Name Type Description
request xpna.GlobalPlanService.MultiPlanCreateRequestCollection The request object containing the necessary information to create multiple plans.

Return Value

A collection of responses containing details of the newly created plans.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

//Create an instance of PlanFromAnalyticsCreateRequest.
xpna.GlobalPlanService.PlanFromAnalyticsCreateRequest planDefinition = new xpna.GlobalPlanService.PlanFromAnalyticsCreateRequest();
planDefinition.planName = 'Multi plan example ';
planDefinition.currentScenarioName = 'Initial';
planDefinition.description = 'Description';

//Get the Data Source that is used to create the plan.
Id dataSourceId = [SELECT Id from Datasource__c where Name='Service Forecasting'][0].Id;
planDefinition.dataSourceId = dataSourceId;

//Get the dimensions that are used to create the plan.
Id accountDimensionId = [SELECT Id from Dimension__c where Name = 'Account'][0].Id;
Id projectManagerDimensionId = [SELECT Id from Dimension__c where Name = 'Project Manager'][0].Id;
Id practice0DimensionId = [SELECT Id from Dimension__c where Name = 'Practice Level 00'][0].Id;
Id timePeriodYearDimensionId = [SELECT Id from Dimension__c where Name = 'Time Period Year'][0].Id;

//Get the measure that is used to create the plan.
Id forecastMeasureId = [SELECT Id from Measure__c where Name = 'Forecast'][0].Id;

//Get dimensions that are used to create the plan as rows.
planDefinition.dimensionRowIds = new List<Id>{accountDimensionId, projectManagerDimensionId, practice0DimensionId};

//Get dimensions that are used to create the plan as columns.
planDefinition.dimensionColumnIds = new List<Id>{timePeriodYearDimensionId};

//Get the measures that are used to create the plan.
planDefinition.measureIds = new List<Id>{forecastMeasureId};

//Optional, by default it is true if you do not provide it.
planDefinition.measureAsColumns = true;

//Optional: Set a dimension value mapping for predefined values.
Map<Id, Map<String, String>> dimensionValueMappings = new Map<Id, Map<String, String>>();
dimensionValueMappings.put(timePeriodYearDimensionId, new Map<String, String> {'2024' => '400000'});

//Create a DimensionValueMappingCollection object and assign the mapping.
xpna.GlobalPlanService.DimensionValueMappingCollection dimensionValueMappingCollection = new xpna.GlobalPlanService.DimensionValueMappingCollection(); 
dimensionValueMappingCollection.dimensionValueMappings = dimensionValueMappings;
planDefinition.valueMappings = dimensionValueMappingCollection;

//Optional: Define filters for the plan definition.
xpna.GlobalPlanService.TreeFilterCollection filterCollection = new xpna.GlobalPlanService.TreeFilterCollection();
xpna.GlobalPlanService.ConditionGroup conditionGroup = new xpna.GlobalPlanService.ConditionGroup();

//Define a condition to filter by the 'Time Period Year' dimension, allowing only values equal to '2024'.
xpna.GlobalPlanService.Condition condition2 = new xpna.GlobalPlanService.Condition();
condition2.dimensionId = timePeriodYearDimensionId;
condition2.comparisonOperator = xpna.GlobalPlanService.FilterComparisonOperator.EQUAL;
condition2.values = new List<String>{ '2024'};

//Set the logical operator for the filter group.
conditionGroup.logicalOperator = xpna.GlobalPlanService.FilterLogicalOperator.AND_LOGIC;
conditionGroup.filters.add(condition2);

//Assign the filters to the planDefinition.
filterCollection.filters = conditionGroup;
planDefinition.filters = filterCollection;

//Optional: Define additional filter for the plans and affect number of plans created.
xpna.GlobalPlanService.TreeFilterCollection additionalFilterCollection = new xpna.GlobalPlanService.TreeFilterCollection();
xpna.GlobalPlanService.ConditionGroup additionalConditionGroup = new xpna.GlobalPlanService.ConditionGroup();

//Define a condition to filter by the 'Account Industry' dimension to only create plans for dimensions that starts with 'Co'.
Id accountIndustryDimensionId = [SELECT Id from Dimension__c where Name = 'Account Industry'][0].Id;
String accountIndustryDimensionFieldName = [SELECT FieldName__c from DimensionMapping__c where Dimension__c = :accountIndustryDimensionId][0].FieldName__c;
xpna.GlobalPlanService.Condition dimensionCondition = new xpna.GlobalPlanService.Condition();
dimensionCondition.dimensionId = accountIndustryDimensionId;
dimensionCondition.dimensionFieldName = accountIndustryDimensionFieldName;
dimensionCondition.comparisonOperator = xpna.GlobalPlanService.FilterComparisonOperator.START_WITH;
dimensionCondition.values = new List<String>{ 'Co'};

//Set the logical operator for the filter group.
additionalConditionGroup.logicalOperator = xpna.GlobalPlanService.FilterLogicalOperator.AND_LOGIC;
additionalConditionGroup.filters.add(dimensionCondition);

//Assign the filters to the spread info.
xpna.GlobalPlanService.MultiPlanFromAnalyticsSpreadBasicInfo spreadInfo = new xpna.GlobalPlanService.MultiPlanFromAnalyticsSpreadBasicInfo();
additionalFilterCollection.filters = additionalConditionGroup;
spreadInfo.filters = additionalFilterCollection;

//Specify the grid view type.
planDefinition.gridView = 'TreeGrid';

//Create an instance of a basic multi plan request which will contain the plan definition and the spread info
xpna.GlobalPlanService.BasicMultiPlanCreateRequest basicMultiPlanRequest = new xpna.GlobalPlanService.BasicMultiPlanCreateRequest();

//Set the plan definition to the request multi plan request object
basicMultiPlanRequest.planDefinition = planDefinition;

//Set the spread info to the request multi plan request object
spreadInfo.dimensionIds.add(accountIndustryDimensionId);
basicMultiPlanRequest.spreadInfo = spreadInfo;

//Set the basic multi plan request object to the collection request 
xpna.GlobalPlanService.MultiPlanCreateRequestCollection multiPlanCreateRequest = new xpna.GlobalPlanService.MultiPlanCreateRequestCollection();
multiPlanCreateRequest.multiPlanCreateRequests.add(basicMultiPlanRequest);

//Call the API method to create the plans.
xpna.GlobalPlanService.MultiPlanCreateResponseCollection result = xpna.GlobalPlanService.createMultiplePlansFromAnalytics(multiPlanCreateRequest);

deletePlans

global static xpna.GlobalPlanService.PlanDeleteResponseCollection deletePlans(xpna.GlobalPlanService.PlanDeleteRequestCollection request)

Deletes the plans.

Input Parameters

Name Type Description
request xpna.GlobalPlanService.PlanDeleteRequestCollection The list of PlanDeleteRequest.

Return Value

A list of PlanResponse.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.


//Create an instance of the object request.
xpna.GlobalPlanService.PlanDeleteRequestCollection request = new xpna.GlobalPlanService.PlanDeleteRequestCollection();

//Create an instance of PlanDeleteRequest and set the ID of the plan to be deleted.
xpna.GlobalPlanService.PlanDeleteRequest planToDeleteRequest = new xpna.GlobalPlanService.PlanDeleteRequest();
planToDeleteRequest.planId = Id.valueOf('a0D7X0000050TrEUAU');

//Add a new PlanDeleteRequest to the request list.
request.planDeleteRequests.add(planToDeleteRequest);

//Call the API method.
xpna.GlobalPlanService.PlanDeleteResponseCollection result = xpna.GlobalPlanService.deletePlans(request);

Deprecated

The following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions.

xpna.GlobalPlanService.DimensionFilter

global with sharing class DimensionFilter extends Filter

Represents the information needed to filter a dimension.

This class extends xpna.GlobalPlanService.Filter

Properties

Name Type Description
dimensionId Id The ID of the dimension to filter.
comparisonOperator xpna.GlobalPlanService.FilterComparisonOperator The comparison operator.
values List<String> The values to compare.
Multiple values when comparisonOperator is:
FilterComparisonOperator.EQUALS FilterComparisonOperator.NOT_EQUAL
Only one value when comparisonOperator is:
FilterComparisonOperator.CONTAINS FilterComparisonOperator.NOT_CONTAINS FilterComparisonOperator.START_WITH
Empty values when comparisonOperator is:
FilterComparisonOperator.IS_NULL FilterComparisonOperator.IS_NOT_NULL

Methods

DimensionFilter

global DimensionFilter()

Creates a new empty DimensionFilter.

xpna.GlobalPlanService.ValueMappingCollection

global with sharing abstract class ValueMappingCollection

Represents the mappings to be used when creating a plan from Analytics.

xpna.GlobalPlanService.DimensionValueMappingCollection

global with sharing class DimensionValueMappingCollection extends ValueMappingCollection

Provides the information about the value mapping for a given dimension to be used when creating a plan from Analytics.

This class extends xpna.GlobalPlanService.ValueMappingCollection

Properties

Name Type Description
dimensionValueMappings Map<Id, Map<String, String>> Contains a map with the dimension ID, the original value, and the new ones.

Methods

DimensionValueMappingCollection

global DimensionValueMappingCollection()

Creates a new empty DimensionValueMappingCollection.

xpna.GlobalPlanService.Filter

global with sharing abstract class Filter

Contains the required information of the plan delete operation. Represents a filter to be used when creating a plan from Analytics.

xpna.GlobalPlanService.FilterCollection

global with sharing abstract class FilterCollection

Represents the filters to be used when creating a plan from Analytics.

xpna.GlobalPlanService.TreeFilterCollection

global with sharing class TreeFilterCollection extends FilterCollection

Represents a tree structure of filters used in Analytics.

This class extends xpna.GlobalPlanService.FilterCollection

Properties

Name Type Description
filters xpna.GlobalPlanService.ConditionGroup The group of conditions used as filters.

Methods

TreeFilterCollection

global TreeFilterCollection()

Creates a new empty TreeFilterCollection.

xpna.GlobalPlanService.Condition

global with sharing class Condition extends Filter

Represents a condition filter used in Analytics.

This class extends xpna.GlobalPlanService.Filter

Properties

Name Type Description
dimensionId Id The ID of the dimension being filtered.
dimensionFieldName String The name of the dimension field being filtered.
comparisonOperator xpna.GlobalPlanService.FilterComparisonOperator The comparison operator used for the filter condition.
values List<String> The list of values used in the filter condition.
isFixedValue Boolean Indicates whether the filter condition has a fixed value.

Methods

Condition

global Condition()

Creates a new empty Condition.

xpna.GlobalPlanService.ConditionGroup

global with sharing class ConditionGroup extends Filter

Represents a logical group of filter conditions.

This class extends xpna.GlobalPlanService.Filter

Properties

Name Type Description
logicalOperator xpna.GlobalPlanService.FilterLogicalOperator The logical operator used to combine filter conditions.
filters List<xpna.GlobalPlanService.Filter> The list of filters included in this group.

Methods

ConditionGroup

global ConditionGroup()

Creates a new empty ConditionGroup.

xpna.GlobalPlanService.ListFilterCollection

global with sharing class ListFilterCollection extends FilterCollection

Provides the information about the simple version of dimension filters (AND operator) to be used when creating a plan from Analytics.

This class extends xpna.GlobalPlanService.FilterCollection

Properties

Name Type Description
filters List<xpna.GlobalPlanService.Filter> The list of filters to be used when creating a plan from Analytics.
logicalOperator xpna.GlobalPlanService.FilterLogicalOperator The logical operator to be used between each filter.

Methods

ListFilterCollection

global ListFilterCollection()

Creates a new empty ListFilterCollection.

xpna.GlobalPlanService.PlanBlankCreateRequest

global with sharing class PlanBlankCreateRequest extends PlanCreateRequest

Contains methods and structures that are used to create a blank plan.

This class extends xpna.GlobalPlanService.PlanCreateRequest

Methods

PlanBlankCreateRequest

global PlanBlankCreateRequest()

Creates a new empty PlanBlankCreateRequest.

xpna.GlobalPlanService.PlanBlankCreateRequestCollection

global with sharing class PlanBlankCreateRequestCollection

Contains methods and structures that are used to create a blank plan.

Properties

Name Type Description
planBlankCreateRequests List<xpna.GlobalPlanService.PlanBlankCreateRequest> Creates a new empty PlanBlankCreateRequestCollection.

Methods

PlanBlankCreateRequestCollection

global PlanBlankCreateRequestCollection()

Creates a new empty PlanBlankCreateRequestCollection.

xpna.GlobalPlanService.PlanBlankCreateResponse

global virtual with sharing class PlanBlankCreateResponse

Contains a structure that returns the creation of a blank plan.

Properties

Name Type Description
planId Id The ID of the newly created plan.

Methods

PlanBlankCreateResponse

global PlanBlankCreateResponse()

Creates a new empty PlanBlankCreateResponse.

xpna.GlobalPlanService.PlanBlankCreateResponseCollection

global with sharing class PlanBlankCreateResponseCollection

Contains a structure that returns the creation of blank plans.

Properties

Name Type Description
planBlankCreateResponses List<xpna.GlobalPlanService.PlanBlankCreateResponse> A list of PlanBlankCreateResponse.

Methods

PlanBlankCreateResponseCollection

global PlanBlankCreateResponseCollection()

Creates a new empty PlanBlankCreateResponseCollection.

xpna.GlobalPlanService.PlanCreateRequest

global virtual with sharing class PlanCreateRequest

Provides the information required to create a plan.

Properties

Name Type Description
currentScenarioName String The current version of the plan.
description String [Optional] The description of the plan.
dimensionColumnIds List<Id> The set of the used dimensions in the plan columns.
dimensionRowIds List<Id> The dimensions set used in the plan rows.
measureAsColumns Boolean The condition to establish if measures are columns (true) or rows (false).
measureIds List<Id> List of the measures IDs to create the plan.
gridView String The view used when displaying the plan. The following options are available:

- "Grid": the plan displays as a standard grid. Each row is independent from other rows and can be moved to another position.
- "TreeGrid": the plan displays as a tree. Row-level dimension values are used to group related rows together to establish a hierarchy. Rows can only be moved within their groups. When you specify this option, the measureAsColumns property cannot be set to false.
planName String The plan name.
rateTableId String [Optional] The rate table of the plan

Methods

PlanCreateRequest

global PlanCreateRequest()

Creates a new empty PlanCreateRequest.

xpna.GlobalPlanService.PlanDeleteRequest

global with sharing class PlanDeleteRequest

Provides the information required to delete a plan.

Properties

Name Type Description
planId Id The ID of the plan to be deleted.

Methods

PlanDeleteRequest

global PlanDeleteRequest()

Default empty constructor to represent the class.

xpna.GlobalPlanService.PlanDeleteRequestCollection

global with sharing class PlanDeleteRequestCollection

Contains the required information for the plan delete operation.

Properties

Name Type Description
planDeleteRequests List<xpna.GlobalPlanService.PlanDeleteRequest> The list of PlanDeleteRequests object.

Methods

PlanDeleteRequestCollection

global PlanDeleteRequestCollection()

Default empty constructor to represent the class outside the namespace.

xpna.GlobalPlanService.PlanDeleteResponse

global with sharing class PlanDeleteResponse

Contains the returning information of the delete plan operation.

Properties

Name Type Description
planId Id The ID of the newly created plan.
asyncJobId Id The ID of the asynchronous job.

Methods

PlanDeleteResponse

global PlanDeleteResponse()

Default empty constructor to represent the class outside the namespace.

xpna.GlobalPlanService.PlanDeleteResponseCollection

global with sharing class PlanDeleteResponseCollection

Contains the returning information of the plan delete operation.

Properties

Name Type Description
planDeleteResponses List<xpna.GlobalPlanService.PlanDeleteResponse> A list of PlanDeleteResponse.

Methods

PlanDeleteResponseCollection

global PlanDeleteResponseCollection()

Default empty constructor to represent the class outside the namespace.

xpna.GlobalPlanService.PlanFromAnalyticsCreateRequest

global with sharing class PlanFromAnalyticsCreateRequest extends PlanCreateRequest

Contains methods and structures that are used to create a plan from an Analytics data source.

This class extends xpna.GlobalPlanService.PlanCreateRequest

Properties

Name Type Description
dataSourceId Id The identificator that contains the data source related to the plan.
filters xpna.GlobalPlanService.FilterCollection The collection of filters to apply to the plan's Analytics query.
valueMappings xpna.GlobalPlanService.ValueMappingCollection The collection of mappings to apply to the plan's Analytics query.

Methods

PlanFromAnalyticsCreateRequest

global PlanFromAnalyticsCreateRequest()

Creates a new empty PlanFromAnalyticsCreateRequest.

xpna.GlobalPlanService.PlanFromAnalyticsCreateRequestCollection

global with sharing class PlanFromAnalyticsCreateRequestCollection

Contains methods and structures that are used to create a plan from an Analytics data source.

Properties

Name Type Description
planFromAnalyticsCreateRequests List<xpna.GlobalPlanService.PlanFromAnalyticsCreateRequest> The list of PlanFromAnalyticsCreateRequest object.

Methods

PlanFromAnalyticsCreateRequestCollection

global PlanFromAnalyticsCreateRequestCollection()

Creates a new empty PlanFromAnalyticsCreateRequestCollection.

xpna.GlobalPlanService.PlanFromAnalyticsCreateResponse

global virtual with sharing class PlanFromAnalyticsCreateResponse

Contains a structure that returns the creation of a plan from Analytics.

Properties

Name Type Description
planId Id The ID of the newly created plan.
jobId Id The ID of the created job.

Methods

PlanFromAnalyticsCreateResponse

global PlanFromAnalyticsCreateResponse()

Creates a new empty PlanFromAnalyticsCreateResponse.

xpna.GlobalPlanService.PlanFromAnalyticsCreateResponseCollection

global with sharing class PlanFromAnalyticsCreateResponseCollection

Contains a structure that returns the creation of plans from Analytics.

Properties

Name Type Description
planFromAnalyticsCreateResponses List<xpna.GlobalPlanService.PlanFromAnalyticsCreateResponse> A list of PlanFromAnalyticsCreateResponse.

Methods

PlanFromAnalyticsCreateResponseCollection

global PlanFromAnalyticsCreateResponseCollection()

Creates a new empty PlanFromAnalyticsCreateResponseCollection.

xpna.GlobalPlanService.MultiPlanCreateRequest

global virtual with sharing class MultiPlanCreateRequest

Contains a structure that represents a request for creating multiple plans.

xpna.GlobalPlanService.MultiPlanCreateResponse

global virtual with sharing class MultiPlanCreateResponse

Contains the structure that represents a response for creating multiple plans.

xpna.GlobalPlanService.BasicMultiPlanCreateResponse

global with sharing class BasicMultiPlanCreateResponse extends MultiPlanCreateResponse

Contains the structure that represents a response for creating multiple plans.

This class extends xpna.GlobalPlanService.MultiPlanCreateResponse

Properties

Name Type Description
processLockId Id An ID of process lock object record.
scheduledProcessId Id The ID of a scheduled process object record.

Methods

BasicMultiPlanCreateResponse

global BasicMultiPlanCreateResponse()

Creates a new empty BasicMultiPlanCreateResponse.

xpna.GlobalPlanService.BasicMultiPlanCreateRequest

global with sharing class BasicMultiPlanCreateRequest extends MultiPlanCreateRequest

Represents a basic request for creating multiple plans from Analytics.

This class extends xpna.GlobalPlanService.MultiPlanCreateRequest

Properties

Name Type Description
planDefinition xpna.GlobalPlanService.PlanFromAnalyticsCreateRequest The plan definition for the multi-plan request.
spreadInfo xpna.GlobalPlanService.MultiPlanFromAnalyticsSpreadInfo The spread information for the multi-plan request.
cronExpression String If filled, contains the expression of when the process will run. If omitted, the process runs immediately.

Methods

BasicMultiPlanCreateRequest

global BasicMultiPlanCreateRequest()

Creates a new empty BasicMultiPlanCreateRequest.

xpna.GlobalPlanService.MultiPlanCreateResponseCollection

global with sharing class MultiPlanCreateResponseCollection

Contains a structure for the creation of multiple plans response.

Properties

Name Type Description
multiPlanCreateResponses List<xpna.GlobalPlanService.MultiPlanCreateResponse> A collection of MultiPlanCreateResponse.

Methods

MultiPlanCreateResponseCollection

global MultiPlanCreateResponseCollection()

Creates a new empty MultiPlanCreateResponseCollection.

xpna.GlobalPlanService.MultiPlanCreateRequestCollection

global with sharing class MultiPlanCreateRequestCollection

Contains a structure for the creation of multiple plans.

Properties

Name Type Description
multiPlanCreateRequests List<xpna.GlobalPlanService.MultiPlanCreateRequest>

Methods

MultiPlanCreateRequestCollection

global MultiPlanCreateRequestCollection()

Creates a new empty MultiPlanCreateRequestCollection.

xpna.GlobalPlanService.MultiPlanFromAnalyticsSpreadInfo

global virtual with sharing class MultiPlanFromAnalyticsSpreadInfo

xpna.GlobalPlanService.MultiPlanFromAnalyticsSpreadBasicInfo

global with sharing class MultiPlanFromAnalyticsSpreadBasicInfo extends MultiPlanFromAnalyticsSpreadInfo

Represents basic spread information for MultiPlan in Analytics, extending from MultiPlanFromAnalyticsSpreadInfo.

This class extends xpna.GlobalPlanService.MultiPlanFromAnalyticsSpreadInfo

Properties

Name Type Description
dimensionIds List<Id> A list of dimension Ids.
filters xpna.GlobalPlanService.FilterCollection The collection of filters to apply to the plan's Analytics query.

Methods

MultiPlanFromAnalyticsSpreadBasicInfo

global MultiPlanFromAnalyticsSpreadBasicInfo()

Creates a new empty MultiPlanFromAnalyticsSpreadBasicInfo.

xpna.GlobalPlanService.GlobalPlanServiceException

global with sharing class GlobalPlanServiceException extends ServiceException

This class is thrown when an error is detected within the xpna.GlobalPlanService class.

© Copyright 2009–2025 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.