ffscpq.AddToOpportunityFromEstimatePluginglobal with sharing class AddToOpportunityFromEstimatePlugin A class that contains plugins to use after the adding to opportunity action has been completed. ffscpq.AddToOpportunityFromEstimatePlugin.IAddToOpportunityFromEstimatePluginglobal interface IAddToOpportunityFromEstimatePlugin Provides an interface that can be used to create plugins to be executed after the Add to Opportunity action is complete. This enables the custom Apex classes to be executed. To set up a plugin, create a fferpcore__Plugin__mdt record with a fferpcore__ExtensionPoint__c of AddToOpportunityFromEstimatePlugin.IAddToOpportunityFromEstimatePlugin, and a ClassName that matches an Apex class which implements that interface. Sample Code
MethodsexecutePluginResponse executePlugin(ffscpq.AddToOpportunityFromEstimatePlugin.Request request) A method that executes this plugin implementation. Input Parameters
Return ValueA response that parallels the request. ffscpq.AddToOpportunityFromEstimatePlugin.Requestglobal with sharing class Request The request structure for executing the plugin. Methods
getResultsglobal List<ffscpq.AddToOpportunityFromEstimatePlugin.Result> getResults() Retrieves a list that contains the response data of the estimate product instances used in the Add to Opportunity action that executed this plugin. Return ValueA list of Results. getAdditionalAggregationFieldPathsglobal List<String> getAdditionalAggregationFieldPaths() Retrieves a string field path of additional fields used to consolidate role requests when creating resource requests. Return ValueA list of String field paths used in role request consolidation. isAggregatedBySkillsglobal Boolean isAggregatedBySkills() Indicates whether the role requests that were added to opportunity were consolidated by skills. Return ValueA boolean to indicate if role requests were consolidated by skills. ffscpq.AddToOpportunityFromEstimatePlugin.Resultglobal with sharing class Result Result containing data of the estimate product instance used in the Add to Opportunity action that executes this plugin. Methods
getEstimateIdglobal Id getEstimateId() The ID of the estimate used in the Add to Opportunity action which executed this plugin. Return ValueThe ID of the estimate associated with the estimate product instances. getEstimateProductInstanceIdglobal Id getEstimateProductInstanceId() The ID of the estimate product instance used in the Add to Opportunity action which executed this plugin. Return ValueThe ID of the estimate product instance. getStatusglobal ffscpq.EstimateActionStatus getStatus() The ffscpq.EstimateActionStatus enum that corresponds to the status of the Add to Opportunity action which executed this plugin. Return ValueAn EstimateActionStatus. getErrorsglobal List<ffscpq.AddToOpportunityFromEstimatePlugin.Error> getErrors() A list containing errors that resulted from the Add to Opportunity action which executed this plugin. Return ValueA list of errors. ffscpq.AddToOpportunityFromEstimatePlugin.Responseglobal with sharing class Response The response structure for executing the plugin. Methods
Responseglobal Response() setRequestglobal void setRequest(ffscpq.AddToOpportunityFromEstimatePlugin.Request sourceRequest) Set the source request used by this plugin. Input Parameters
getRequestglobal ffscpq.AddToOpportunityFromEstimatePlugin.Request getRequest() Retrieves the source request used by this plugin. Return ValueA request. ffscpq.AddToOpportunityFromEstimatePlugin.Errorglobal with sharing class Error The structure of the errors that occurred during the Add to Opportunity action which executed this plugin. MethodsgetMessageglobal String getMessage() The message of the error that occured during the Add to Opportunity action which executed this plugin. Return ValueA string error message. |