CreateBatch_GlobalsLearn how to use CreateBatch_Globals classes to create arguments for "Create Batch" invocables.Jan 27, 2025Knowledge
InformationArticle BodyCreateBatch_Globals Overview This class serves as the parent class to a few classes that act as arguments for the "Create Batch" invocables. They define the data to be used in creating a MergeUp Batches. CreateBatchWithIdsParams Uses a MergeUp Template Id and a list of record Ids to define a MergeUp Batch. Used by CreateBatchRecordIds_Invocable. Constructors global CreateBatchWithIdsParams() Default constructor. Initializes the class. Fields global templateId → Id The Id of the MergeUp Template all document merges in the batch will be based on. This must be a Record Template. global recordIds → List<Id> Ids for each record that will be merged in the batch. The object type of every record Id in the list must the templateId's MergeUp Template Group's object type. CreateBatchWithRecordsParams Uses a MergeUp Template Id and a list of records to define a MergeUp Batch. Used by CreateBatchRecords_Invocable. Constructors global CreateBatchWithRecordsParams() Default constructor. Initializes the class. Fields global templateId → Id The Id of the MergeUp Template all document merges in the batch will be based on. This must be a Record Template. global records → List<sObject> Records that will be merged in the batch. The object type of every record in the list must the templateId's MergeUp Template Group's object type. CreateBatchAdvancedParams Uses a list of Merge_Parameters to define a MergeUp Batch. Used by CreateBatchAdvanced_Invocable. Constructors global CreateBatchAdvancedParams() Default constructor. Initializes the class. Fields global mergeParameters → List<Merge_Parameters> Merge_Parameters which each define a document merge for the batch. CreateBatchResponse The results of one of the "CreateBatch" class' methods. Use to perform additional logic after creating a new MergeUp Batch, like starting it. Fields global mergeBatchId → Id Id of the created MergeUp Batch. If null, the MergeUp Batch was not created successfully. global mergeLogIds → List<Id> Ids of all the MergeUp Merge Logs related to the created MergeUp Batch.TitleCreateBatch_GlobalsURL NameCreateBatch-Globals