Newer Version Available

This content describes an older version of this product. View Latest

RE_TacticTransfer Class

The RE_TacticTransfer Apex class provides programmatic access to the RE_TacticTransfer sObject and its related sObjects.

The RE_TacticTransfer class contains:

  • A List object of type cgcloud.RE_TacticTransfer with all the managed package tactic data.
    1List<cgcloud.RE_TacticTransfer> tacticProductTransferWrapper = (List<cgcloud.RE_TacticTransfer>) params.get('tacticTransfer');
  • A List object of type cgcloud.RE_TacticTransfer with all the tactic data.
    1List<cgcloud__Tactic__c> targetTacticList = (List<cgcloud__Tactic__c>) params.get('targetTacticList');
  • A List object of type Promotion__c with all the promotion data.
    1List<cgcloud__Promotion__c> targetPromotionList = (List<cgcloud__Promotion__c>) params.get('targetPromotionList');
  • A Boolean flag to determine if the record is a tactic product
    1Boolean isTacticProduct = (Boolean)params.get('isTacticProduct');

Namespace

1cgcloud

Example Implementation

1cgcloud.RE_TacticTransfer tacticTransfer;

Supported Methods

Table 1. RE_TacticTransfer Supported Methods
Method signature Description Version
global RE_TacticTransfer.Record addTacticProduct(Tactic_Product__c tacticProduct) Adds a new tactic product to the tactic. 60.0
global SObject getRecord() Returns the full sObject.

To get the missing ID of the sObject, use the getId() method of the record wrapper.

60.0
global RE_TacticTransfer.Record getTactic() Returns the main tacticTransfer record. 60.0
global List<RE_TacticTransfer.TacticRecord> getTactics Returns a list of RE_TacticTransfer.TacticRecord instances with the tactic contents. 60.0
global List<RE_TacticTransfer.Record> getTacticProducts() Returns a filtered list of RE_PromotionTransfer.Record instances with the tactic contents. 60.0
global RE_TacticTransfer(Tactic__c tacticSObject) Constructor that loads all related data for the given tacticTransfer ID. 60.0
global void setIsDeleted(Boolean value) Sets the isDeleted flag for the record. 60.0